Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

I have a Dataset that is based on IterableDataSet, looking like that class MyDataSet(torch.utils.data.IterableDataset): def __init__(self): # doing init stuff here def __iter__(self): ...
RaJa's user avatar
  • 1,597
0 votes
1 answer
175 views

I am using TensorFlow/Keras to create a deep learning model. The network is built as follows: inps = [] features = [] for i in range(number_windows): inp = Input(shape=(window_length,), name=f&...
CopyOfA's user avatar
  • 931
3 votes
1 answer
218 views

I am trying to implement a TensorFlow dataset from a Python generator because I am having problems with my model consuming memory, inevitably resulting in a OOM crash (see my question on that here). ...
CopyOfA's user avatar
  • 931
0 votes
0 answers
115 views

I'm currently working on a model similar to DeepLOB, using high-frequency tick-level financial data. Due to the massive volume and the need to structure the data into time series format, it's ...
ZaixinDong's user avatar
0 votes
0 answers
346 views

I'm using Hotchocolate v15, EF Core. For 1:m relationship, I'm using dataloader and projection to just fetch selected fields for child items. It work as expected, for example: load products by branch. ...
Thu Nguyen's user avatar
1 vote
1 answer
53 views

I'm running a GraphQL server using postgraphile and dataloader to batch and load data from a backend microservice. When the number of IDs passed to the loader grows large (~100+), the request fails ...
Itay Tur's user avatar
  • 1,982
0 votes
0 answers
60 views

I'm working with a class called CachedRandomIterDataset that uses an asynchronous thread to load data into a cache from a dataset. The cache is supposed to be filled with data, shuffled, and then ...
week-yet's user avatar
0 votes
0 answers
46 views

For a GraphQL request, in our resolver, we often need to insert messages to an AWS SQS queue which then triggers a Lambda function. So we wanted to batch all invocations to our util function (where we ...
Piyush Bhakat's user avatar
0 votes
1 answer
317 views

I'm trying to compute the recall after performing a HNSW search in FAISS. By recall, I mean the following metric: Recall = TP / (TP + FN) ​ Where I consider an image as a True Positive (TP) if it ...
No Yeah's user avatar
  • 23
1 vote
0 answers
151 views

I am trying to train a deep learning model on a very large image dataset. The model input requires a pair of images (A and B). Because my image sizes are quite large, I have resized each of them to a ...
Nick Nick Nick's user avatar
0 votes
1 answer
124 views

Why is my DataLoader process using up to 2.6GB of virtual memory, and is there any way to reduce it? Each DataLoader process takes up 2.6GB of virtual memory, and 4 processes take up 10.4GB. from ...
hrdom's user avatar
  • 168
1 vote
0 answers
29 views

I want train cnns on a big dataset via transfer learning using torch in R. Since my dataset is to big to be loaded all at once, I have to load each sample from the SSD in the dataloader. But loading ...
Daniel Maar's user avatar
0 votes
2 answers
283 views

I've created DataLoader objects for my training and validation datasets, but when I try to pass them to the trainer.train() method, I get the following error: Log summary: TypeError: 'DataLoader' ...
Jonathan Molina's user avatar
1 vote
2 answers
291 views

I'm trying to get the torch dataloader to load the data under a specific sequence determined by the random seed 1. Here's my code: import random import torch.utils.data.dataset as Dataset import torch....
WillWu's user avatar
  • 109
0 votes
1 answer
655 views

I want to inference model in multiprocessing, instead of use torch.distributed, how can I use multiprocessing.Pool? I have to use num_workers=0 in subprocess to avoid error like "daemonic ...
常耀耀's user avatar
1 vote
1 answer
74 views

I am trying to build TF data pipeline with tf.data API. I have ~100k of npz files to load and each npz has key of ["input"] and ["output"]. Some preprocessing is needed before ...
Dannnnnies's user avatar
0 votes
1 answer
920 views

Consider the below minimal GQL schema: type query { appointments: [Appointment!]! } type Appointment { id: ID! job: Job! } type Company { id: ID! job: Job! } type Job { id: ...
Alexios's user avatar
  • 123
1 vote
1 answer
393 views

The usual steps to use the Trainer from huggingface requires that: Load the data Tokenize the data Pass tokenized data to Trainer MWE: data = generate_random_data(10000) # Generate 10,000 samples ...
Kirk Walla's user avatar
0 votes
0 answers
71 views

In the federated Learning code below, I'm using Pysyft. the goal is to distribute the FashionMNIST dataset to different clients federated_train_loader = syft.FederatedDataLoader( datasets....
ghazalia's user avatar
1 vote
1 answer
609 views

I’m using PyTorch’s DataLoader to load my dataset. I’ve noticed that my program hangs indefinitely during training when I set num_workers > 0. However, it works fine when num_workers = 0. Here’s a ...
Gway's user avatar
  • 11
0 votes
1 answer
54 views

I am currently working on a binary classification task involving image data. To begin, it is essential for me to inspect my dataset. However, I have encountered an issue with the DataLoader. On the ...
cykim's user avatar
  • 31
-1 votes
1 answer
206 views

I try to predict a single image without using Dataloader, but I get a weird result. This image is the result of my prediction. With Dataloader, predicted results are consistent with labels. However, ...
Dan's user avatar
  • 1
0 votes
1 answer
745 views

My simplified Dataset looks like: class MyDataset(Dataset): def __init__(self) -> None: super().__init__() self.images: torch.Tensor[n, w, h, c] # n images in memmory - ...
Mateusz Konopelski's user avatar
1 vote
1 answer
158 views

I am using react router dom RouterProvider which decouples fetching from rendering, from the official remix-run react router example of auth-router-provider, it was stated in the README.md that we ...
Abdulbasit Yusuf's user avatar
1 vote
1 answer
451 views

I am training a FCN model, I have two dataloaders train_loader and val_loader. As you can see in the code below, I made the model train on the validation data. I did this to debug a problem I had ...
joel andersson's user avatar
1 vote
1 answer
147 views

I have a validation dataset of images to be classified by my CNN model. I want to load these images using pytorch. torchvision.datasets.ImageFolder() function doesn't work, since there are no targets, ...
dimicorn's user avatar
1 vote
0 answers
103 views

I'm building some dataloaders for training and testing a machine learning model. I have a list of tuples named "array" like this: (Data(x=[468, 2], edge_index=[2, 1322], y=0, edge_weight=[...
Giuseppe Basile's user avatar
0 votes
0 answers
64 views

I created a custom ImageFolder with torch.utils.data.Dataset class and then converted it to a dataloader, but when I want to see one of the elements of data loader with img_custom, label_custom = next(...
mam1680's user avatar
  • 55
1 vote
1 answer
80 views

Intermittently it happens that pandas.DataFrame.to_sql partially loads data into snowflake. Example: DF has 25000 rows, buy the function loads only 15000 to snowflake. Has anyone faced this issue and ...
Rohan Sharma's user avatar
0 votes
1 answer
428 views

I am trying to create a custom dataset and dataloader in pytorch, to finetune a DONUT model. For context, my dataset is organised as follows: dataset/ ├── train/ │ ├── image1.jpg │ ├── image2.jpg │...
Gloria Neo's user avatar
1 vote
0 answers
63 views

While working on a data loader for a Keras deep learning model, I added some print statements in the get_item method of the data loader. This method is in charge of returning the n-th batch to the ...
Steph Pepito's user avatar
0 votes
1 answer
178 views

while loading some data from a network drive a permission error occurs from time to time and the script terminates with a permission error. the error occurs in this line : try: data = self....
Zack_Aria's user avatar
0 votes
1 answer
170 views

I want to load image sequences of a fixed length into batches of the same size (for example sequence length = batch size = 7). There are multiple directories each with images from a sequence with ...
irgendwii's user avatar
0 votes
1 answer
350 views

I'm working on using PyTorch Lightning to train a neural network with a DataLoader. I have installed PyTorch and PyTorch Lightning successfully. However, I am encountering an issue with the learning ...
Idea's user avatar
  • 1
0 votes
1 answer
285 views

I'm currently in the process of building a BERT language model from scratch for educational purposes. While constructing the model itself was a smooth journey, I encountered challenges in creating the ...
Ali Haider Ahmad's user avatar
0 votes
0 answers
346 views

I have a dataloader that I'm using to batch requests to a service to get my user's addresses. The loader doesn't batch requests correctly when the parent resolver uses async code. Here's a general ...
SGolds's user avatar
  • 139
1 vote
0 answers
270 views

I've noticed that PyTorch 2.0.1 DataLoader is significantly slower than PyTorch 1.13 DataLoader, especially when the number of workers is set to something other than 0. I've done some research and ...
Milad Sikaroudi's user avatar
0 votes
3 answers
4k views

i'v installed the latest version of Zulu Jdk and DataLoader to get Data Loader on my computer, but after extracting the files from the compressed file of the DataLoader, and trying to run the install....
iluvcode's user avatar
0 votes
1 answer
154 views

We're using NodeJS (typescript) and GraphQL for our backend. Therefore we rely heavily on dataloaders, and we get more and more field resolvers that needs to be resolved on something other than IDs. ...
Jolle's user avatar
  • 1,456
0 votes
2 answers
312 views

I'm implementing a Graphql resolver for complex datatype. I try to use a data loader to avoid N+1 problem. I have a datatype with a counter. Therefore, in one graphql query I need to perform user ...
Ivan Banha's user avatar
0 votes
1 answer
710 views

I am converting someone else's code into a neater torch-y pipeline, using datasets and dataloaders, collate functions and samplers. While I have done such work before, I am not sure how to tackle the ...
Bram Vanroy's user avatar
  • 28.9k
1 vote
2 answers
504 views

Background: I'm working with a large dataset saved in a non-standard format. I can write a pure python data-reader, but when called from DL dataloaders, like tf.data.Dataset, it takes forever to ...
MarkV's user avatar
  • 1,062
0 votes
0 answers
125 views

I am trying to train a pytorch neural network to map from image space to 2D. I have the condition that I only want to use the ReLU activation function, linear layers, conv2d layers, and avgpool2d ...
CCole's user avatar
  • 1
0 votes
2 answers
264 views

context: ({ req }) => { if (req) { return { ip: headers.userip, headers, userLanguage, decodedToken, dataLoaders: { seoDataLoader: createSeoDataLoader() } } } } Here I create a createSeoDataLoader ...
Jay Karavadra's user avatar
4 votes
1 answer
1k views

I have the following GrapqhQL query: query { listTenants { totalCount items { tenantId name sites { totalCount items { siteId cmxName ...
Daniel Ninchev's user avatar
0 votes
4 answers
7k views

I am learning salesforce. I am trying to install dataloader. I have downloaded and extracted the files in the zip file, into a local folder. But when I am trying to run the install.bat, I get this ...
santubangalore's user avatar
2 votes
1 answer
6k views

I am using PyTorch to train a machine learning model, and I have encountered a significant issue where iterating over the DataLoader is noticeably slower than directly accessing the dataset. My main ...
triple_double's user avatar
0 votes
1 answer
52 views

My source code is using pytorch and like this: def Embed(sequenceSet): output = [] for s in sequenceSet: PseDNCSequence = Embedding.PseDNC(str(s)) ANFSequence = Embedding.ANF(str(s)) ...
Peter Phan's user avatar
2 votes
1 answer
2k views

I recently started experimenting with HotChocolate v.13. and I am having issues implementing the data loaders with the [DataLoader] attributes like shown in this video: Let's simplify DataLoader with ...
Daniel Ninchev's user avatar
1 vote
0 answers
109 views

There are often examples of injecting the batch function into the context when implementing dataloader in Golang, but I'm not sure why. While I understand the concept of caching data per request in ...
anderson's user avatar
  • 485

1
2 3 4 5
9