wuhuikai / FastFCN

FastFCN: Rethinking Dilated Convolution in the Backbone for Semantic Segmentation.
http://wuhuikai.me/FastFCNProject
Other
838 stars 148 forks source link

请问必须通过代码下载数据集才能训练吗?我自己先下载好不行吗?AssertionError: Please setup the dataset usingencoding/scripts/prepare_ade20k.py #23

Closed lifeiwen closed 5 years ago

lifeiwen commented 5 years ago

出现这个错误直接在路径下python train.py

wuhuikai commented 5 years ago

Please put your dataset in ~/.encoding/data/ADEChallengeData2016

lifeiwen commented 5 years ago

@wuhuikai 你好,我把数据放在你说的路径还是AssertionError: Please setup the dataset usingencoding/scripts/prepare_ade20k.py这个问题

wuhuikai commented 5 years ago

What's your OS, Windows or Linux?

lifeiwen commented 5 years ago

@wuhuikai linux 把数据路径改成了绝对路径也还是有这个问题

wuhuikai commented 5 years ago

Can you show the structure of ~/.encoding/data?

lifeiwen commented 5 years ago

@wuhuikai Hi我的数据是FastFCN/encoding/data/ADEChallengeData2016/

lifeiwen commented 5 years ago

(torch1.0) lf@110:~/Semantic segmentation/FastFCN/experiments/segmentation$ python train.py Namespace(aux=False, aux_weight=0.2, backbone='resnet50', base_size=520, batch_size=16, checkname='default', crop_size=480, cuda=True, dataset='ade20k', dilated=False, epochs=120, ft=False, jpu=False, lateral=False, lr=0.01, lr_scheduler='poly', mode='testval', model='encnet', model_zoo=None, momentum=0.9, ms=False, no_cuda=False, no_val=False, resume=None, save_folder='results', se_loss=False, se_weight=0.2, seed=1, split='val', start_epoch=0, test_batch_size=16, train_split='train', weight_decay=0.0001, workers=16) BaseDataset: base_size 520, crop_size 480 Traceback (most recent call last): File "train.py", line 176, in trainer = Trainer(args) File "train.py", line 39, in init data_kwargs) File "/home/lf/anaconda3/envs/torch1.0/lib/python3.5/site-packages/encoding/datasets/init.py", line 19, in get_segmentation_dataset return datasets[name.lower()](kwargs) File "/home/lf/anaconda3/envs/torch1.0/lib/python3.5/site-packages/encoding/datasets/ade20k.py", line 25, in init "encoding/scripts/prepare_ade20k.py" AssertionError: Please setup the dataset usingencoding/scripts/prepare_ade20k.py

wuhuikai commented 5 years ago

I see. Please put your dataset in /home/[USER NAME]/.encoding/data/ADEChallengeData2016