Giter VIP home page Giter VIP logo

Comments (3)

Tsardoz avatar Tsardoz commented on May 29, 2024 2

Thanks but that did not work either. I embedded the codes into class_names.py and it worked
class_names.txt
.

from vit-adapter.

duanduanduanyuchen avatar duanduanduanyuchen commented on May 29, 2024

!CUDA_VISIBLE_DEVICES=0 python image_demo.py configs/coco_stuff164k/mask2former_beit_adapter_large_896_80k_cocostuff164k_ss.py pretrained/mask2former_beit_adapter_large_896_80k_cocostuff164k.pth.tar /data/sample1.jpg --palette coco_stuff

Traceback (most recent call last): File "image_demo.py", line 58, in main() File "image_demo.py", line 42, in main model.CLASSES = get_classes(args.palette) File "/opt/conda/lib/python3.7/site-packages/mmseg/core/evaluation/class_names.py", line 133, in get_classes raise ValueError(f'Unrecognized dataset: {dataset}') ValueError: Unrecognized dataset: coco_stuff

In get_classes these are the only datasets hard coded: cityscapes, ade and voc. Do I have to embed the classes inside this script? Surely there is a better way...

Hi! I think you can try 'cocostuff' not 'coco_stuff' as the dataset name.

from vit-adapter.

EchoRaven avatar EchoRaven commented on May 29, 2024

添加自己的数据集的时候,请修改python环境里的mmseg下的文件,而不是项目里的mmseg文件

from vit-adapter.

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.