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
I have implemented the Largedataset class as you recommended, and the dataset method yields this error:
AttributeError: LargeDataset instance has no attribute 'len'
In my opinion, you should also catch this error in dataset.py
try:
self.iteration_size = len(samples)
except TypeError: # has no len
If you want, I can share the LargeDataset class with you, but it's a bit particular to my problem. I have added the len attribute to return the number of batches in one dataset file which is loaded from hard drive.
The text was updated successfully, but these errors were encountered:
This is a good idea! In the meantime, I have moved the Dataset class to another package -- https://github.com/lmjohns3/downhill. It looks like there's not a quick way to move an issue to another repository, so I'm going to close this one here and open it there: lmjohns3/downhill#1
I have implemented the Largedataset class as you recommended, and the dataset method yields this error:
AttributeError: LargeDataset instance has no attribute 'len'
In my opinion, you should also catch this error in dataset.py
try:
self.iteration_size = len(samples)
except TypeError: # has no len
If you want, I can share the LargeDataset class with you, but it's a bit particular to my problem. I have added the len attribute to return the number of batches in one dataset file which is loaded from hard drive.
The text was updated successfully, but these errors were encountered: