Giter Site home page Giter Site logo

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

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

from fastfcn.

Comments (9)

lifeiwen avatar lifeiwen commented on July 23, 2024

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

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

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

from fastfcn.

lifeiwen avatar lifeiwen commented on July 23, 2024

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

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

What's your OS, Windows or Linux?

from fastfcn.

lifeiwen avatar lifeiwen commented on July 23, 2024

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

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

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

from fastfcn.

lifeiwen avatar lifeiwen commented on July 23, 2024

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

from fastfcn.

lifeiwen avatar lifeiwen commented on July 23, 2024

(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 datasetsname.lower()
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

from fastfcn.

wuhuikai avatar wuhuikai commented on July 23, 2024

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

from fastfcn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.