Skip to content

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

@bipin-saha

Description

@bipin-saha

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions