YuvalNirkin / hyperseg

HyperSeg - Official PyTorch Implementation
https://nirkin.com/hyperseg
Creative Commons Zero v1.0 Universal
210 stars 39 forks source link

Dataset not found or incomplete. #11

Closed leo-hao closed 3 years ago

leo-hao commented 3 years ago
(liuhaomag) cv428@428:~/data/LH/hyperseg$ python configs/train/cityscapes_efficientnet_b1_hyperseg-m.py
Traceback (most recent call last):
  File "configs/train/cityscapes_efficientnet_b1_hyperseg-m.py", line 46, in <module>
    scheduler=scheduler, pretrained=pretrained, model=model, criterion=criterion, batch_scheduler=batch_scheduler)
  File "/home/cv428/data/LH/hyperseg/train.py", line 187, in main
    train_dataset = obj_factory(train_dataset, transforms=train_transforms)
  File "/home/cv428/data/LH/hyperseg/utils/obj_factory.py", line 57, in obj_factory
    return obj_exp(*args, **kwargs)
  File "/home/cv428/data/LH/hyperseg/datasets/cityscapes.py", line 156, in __init__
    raise RuntimeError('Dataset not found or incomplete. Please make sure all required folders for the'
RuntimeError: Dataset not found or incomplete. Please make sure all required folders for the specified "split" and "mode" are inside the "root" directory
leo-hao commented 3 years ago

i have no idea about the folders for the specified "split" and "mode" are inside the "root" directory

YuvalNirkin commented 3 years ago

You must download the CityScapes dataset to the directory specified in the config file first.

leo-hao commented 3 years ago

Hi! Thanks for your reply. I have put data/cityscapes under the hyperseg. And i set the the data_dir='/home/data/userleo/Documents/code/hyperseg/data/cityscapes' in config/train/cityscapes_efficientnet_b1_hyperseg-m.py, occurs the same issue where data_dir='/data/cityscapes'. I wonder know where the config should i modify . Looking forward to your reply~ image

YuvalNirkin commented 3 years ago

Make sure the cityscapes root directory contains the following directories: leftImg8bit ----train ----val ----test gtFine ----train ----val ----test

Additionally make sure that data_dir variable does actually point to the cityscapes root directory.

leo-hao commented 3 years ago

Thank you for your help. This is the second time I ran a code experiment. I downloaded the cityscapes dataset last time. I forgot that gtFine is also part of it. This stupid question has bothered me for a long time. Thank you again for your reply, I wish you success in your work and create greater glories.