Do not load dataset information at instanciation
Allows to instantiate an ImageDownloader
outside the teklia-dan datasets download
command.
To reproduce the previous issue
> from dan.datasets.download.images import ImageDownloader
> from pathlib import Path
> im = ImageDownloader(output=Path("/tmp"))
File "/usr/local/lib/python3.10/dist-packages/dan/datasets/download/images.py", line 76, in __init__
split_data["text"] for split_data in self.split[TRAIN_NAME].values()
KeyError: 'train'
Merge request reports
Activity
changed milestone to %0.2.1
requested review from @mblanco
assigned to @yschneider
mentioned in commit fb4c15d8
mentioned in merge request !455 (merged)
Please register or sign in to reply