Comments (1)
Traceback (most recent call last): File "train.py", line 207, in main() File "train.py", line 203, in main meta=meta) File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmdet/apis/train.py", line 208, in train_detector runner.run(data_loaders, cfg.workflow) File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run epoch_runner(data_loaders[i], **kwargs) File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 45, in train self.call_hook('before_train_epoch') File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 309, in call_hook getattr(hook, fn_name)(self) File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmdet/datasets/utils.py", line 158, in before_train_epoch self._check_head(runner) File "/opt/conda/envs/vit_37/lib/python3.7/site-packages/mmdet/datasets/utils.py", line 145, in _check_head (f'The
num_classes
({module.num_classes}) in ' AssertionError: Thenum_classes
(80) in BEiTAdapter of MMDataParallel does not matches the length ofCLASSES
5) in CocoDatasetthis is my log.
I have 5 class in my custom data, but it seems to need to have 80 classes to use pretrained weight. Can you give solution?
Hi! Can you share your config file?
Maybe you can edit the num_classes here: https://github.com/czczup/ViT-Adapter/detection/mmdet_custom/models/backbones/beit_adapter.py#L27
from vit-adapter.
Related Issues (20)
- feature map visualization HOT 1
- Can you provide the imagenet 22k pre training for the ViT-Adapter base? HOT 4
- about cropsize HOT 1
- how to draw figure 2 in the paper? HOT 5
- Mask2former Pretrained on Pascal VOC HOT 1
- solved HOT 1
- Training ViT Adapter on custom dataset but it not working because of an error
- Dinov2 mmcv compatability HOT 4
- support panoptic segmentation HOT 1
- hello, can you share some script about getting "cityscapes/annotations/instancesonly_filtered_gtFine_test.json"? thanks HOT 2
- How can adapter be used in other sizes of vit? HOT 3
- Error during detection Train!! TypeError: '<' not supported between instances of 'str' and 'int' HOT 1
- Application fo
- 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
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.