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
We can run the template we want through the open in colab button in the pytorch-ignite code generator. And, we can press the button to link the following code to run in colab for running Template-vision-segmentation directly in colab.
However, if this is executed as colab, the following problem arise because it is executed without the data required for training.
Traceback (most recent call last):
File "/content/data.py", line 80, in setup_data
dataset_train = VOCSegmentationPIL(
File "/content/data.py", line 56, in __init__
super().__init__(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torchvision/datasets/voc.py", line 101, in __init__
raise RuntimeError("Dataset not found or corrupted. You can use download=True to download it")
RuntimeError: Dataset not found or corrupted. You can use download=True to download it
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/content/main.py", line 128, in <module>
main()
File "/content/main.py", line 124, in main
p.run(run, config=config)
File "/usr/local/lib/python3.10/dist-packages/ignite/distributed/launcher.py", line 316, in run
func(local_rank, *args, **kwargs)
File "/content/main.py", line 36, in run
dataloader_train, dataloader_eval = setup_data(config)
File "/content/data.py", line 87, in setup_data
raise RuntimeError(
RuntimeError: Dataset not found. You can use `download_datasets` from data.py function to download it.
@Jar199 thanks for reporting! Yes, we were also thinking at some point about enabling automatic dataset downloading. We didn't do that due to the fact that the dataset size is about several GBs and automatically downloading it can be seen as an unexpected behaviour vs using already downloaded dataset.
Maybe, we can add additional line to the README and into colab cell:
python -c "from data import download_datasets; download_datasets('/path/to/data')"
It’s about trivial error.
We can run the template we want through the open in colab button in the pytorch-ignite code generator. And, we can press the button to link the following code to run in colab for running Template-vision-segmentation directly in colab.
However, if this is executed as colab, the following problem arise because it is executed without the data required for training.
So, I suggest correcting
download=False
todownload=True
in code-generator/src/templates/template-vision-segmentation/data.py for running it immediately.The text was updated successfully, but these errors were encountered: