You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type of dataset attribute: <class 'main.PairedDataset'>
collate_fn is callable.
Length of train dataloader: 35403
Length of validation dataloader: 1563
Length of test dataloader: 313
Is collate_fn callable? True
TypeError Traceback (most recent call last) in <cell line: 74>()
72 print("Is collate_fn callable?", callable(dataloader_train.dataset.collate_fn))
73
---> 74 for it, (images, captions) in enumerate(dataloader_train):
75 try:
76 print("Iteration:", it)
/usr/local/lib/python3.10/dist-packages/torch/utils/data/dataloader.py in _next_data(self)
673 def _next_data(self):
674 index = self._next_index() # may raise StopIteration
--> 675 data = self._dataset_fetcher.fetch(index) # may raise StopIteration
676 if self._pin_memory:
677 data = _utils.pin_memory.pin_memory(data, self._pin_memory_device)
/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/fetch.py in fetch(self, possibly_batched_index)
47 if self.auto_collation:
48 if hasattr(self.dataset, "getitems") and self.dataset.getitems:
---> 49 data = self.dataset.getitems(possibly_batched_index)
50 else:
51 data = [self.dataset[idx] for idx in possibly_batched_index]
TypeError: 'generator' object is not callable
can you help to resolve the problem i could undersetand why this error is shwoing
Hello, I would like to ask myself where is the description of the output generated by the model?
The text was updated successfully, but these errors were encountered: