Comments (3)
Thanks but that did not work either. I embedded the codes into class_names.py and it worked
class_names.txt
.
from vit-adapter.
!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.
添加自己的数据集的时候,请修改python环境里的mmseg下的文件,而不是项目里的mmseg文件
from vit-adapter.
Related Issues (20)
- Application of Referring image segmentation HOT 1
- Feature request: mmcv v2 support HOT 1
- What is the principle of feature map visualization? HOT 1
- Why BEiT_Adapter only have large size? HOT 3
- guideline on reproduction
- undefined symbol: _ZN3c1015SmallVectorBaseIjE8grow_podEPvmm HOT 2
- How to freeze ViT backbone during training? HOT 2
- question about "htc++ beitv2+obj365"
- hi, I want to use this framework for visual grounding tasks, can you give me some suggestions to address this?
- ImportError: cannot import name 'MultiScaleDeformableAttention' from 'mmcv.cnn.bricks.transformer' HOT 1
- TypeError: forward_train() missing 2 required positional arguments: 'gt_labels' and 'gt_masks' HOT 2
- Poor performance of Mask2Former based on coco-stuff-164k HOT 5
- ModuleNotFoundError: No module named 'ops.modules' HOT 4
- knowledge distillation HOT 1
- About the GFlops on the ADE20K dataset. HOT 3
- swin-t-adapter HOT 1
- Cannot download the checkpoint of upernet_deit_adapter_tiny.
- After Freezing the Vit backbone how many iterations are supposed to be trained?
- How can I use other pretrained ViTs or CNNs?
- number of iteration in the case of a batchsize equals to 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vit-adapter.