Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'RecordCollection' object has no attribute 'load' #1169

Open
bipin-saha opened this issue Apr 9, 2023 · 1 comment
Open

'RecordCollection' object has no attribute 'load' #1169

bipin-saha opened this issue Apr 9, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation example request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@bipin-saha
Copy link

I am trying to train using my custom dataset. While trying to load the train/valid images the following error shows up!

[<ipython-input-11-c243ed61226e>](https://localhost:8080/#) in <listcomp>(.0)
      1 # Show an element of the train_ds with augmentation transformations applied
----> 2 samples = [valid_ds[0] for _ in range(3)]
      3 show_samples(samples, ncols=3)

[/usr/local/lib/python3.9/dist-packages/icevision/data/dataset.py](https://localhost:8080/#) in __getitem__(self, i)
     33 
     34     def __getitem__(self, i):
---> 35         record = self.records[i].load()
     36         if self.tfm is not None:
     37             record = self.tfm(record)

AttributeError: 'RecordCollection' object has no attribute 'load'

Can't move forward further. I am looking for a solution. Attaching my Google Colab Notebook

@bipin-saha bipin-saha added documentation Improvements or additions to documentation example request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 9, 2023
@bipin-saha
Copy link
Author

issue solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation example request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant