Comments (9)
Can you provide more details? If you run with your dataset, you need to change the num_classes.
from uniformer.
Can you provide more details? If you run with your dataset, you need to change the num_classes.
I have changed the num_class in the config py、\mmdet\datasets\coco.py、\mmdet\core\evaluation\class_names.py,
then I run python3.7 setup.py install
, it still shows the error
from uniformer.
54 is the number of classes for your dataset? I guess you don't change the config correctly.
You can check the generated file (xxx.log
) for training, and find whether you have already changed the num_class
.
Can you provide the config that you run?
from uniformer.
Traceback (most recent call last): File "./tools/train.py", line 187, in <module> main() File "./tools/train.py", line 183, in main meta=meta) File "/home/lbc/UniFormer/object_detection/mmdet/apis/train.py", line 185, in train_detector runner.run(data_loaders, cfg.workflow) File "/home/lbc/.local/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run epoch_runner(data_loaders[i], **kwargs) File "/home/lbc/.local/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 45, in train self.call_hook('before_train_epoch') File "/home/lbc/.local/lib/python3.7/site-packages/mmcv/runner/base_runner.py", line 307, in call_hook getattr(hook, fn_name)(self) File "/home/lbc/UniFormer/object_detection/mmdet/datasets/utils.py", line 150, in before_train_epoch self._check_head(runner) File "/home/lbc/UniFormer/object_detection/mmdet/datasets/utils.py", line 137, in _check_head (f'The
num_classes` ({module.num_classes}) in '2022-02-23 16:06:53,711 - mmdet - INFO - Checkpoints will be saved to /home/lbc/UniFormer/object_detection/work_dirs/config by HardDiskBackend.
AssertionError: The num_classes
(54) in ConvFCBBoxHead of MMDistributedDataParallel does not matches the length of CLASSES
80) in CocoDataset`
from uniformer.
54 is the number of classes for your dataset? I guess you don't change the config correctly. You can check the generated file (
xxx.log
) for training, and find whether you have already changed thenum_class
. Can you provide the config that you run?![]()
I check the log file, it does show the num_class=54, could you tell me which mmdetection edition you have used?
from uniformer.
@Williamlizl You can find the version in version.py. It is 2.11.0.
You can install the mmdet under our repo => UniFormer/object_detection/
from uniformer.
Moreover, could you share the detailed config
and shell
you run? Maybe you can open new repo and upload the config you use. I will check it.
from uniformer.
Moreover, could you share the detailed
config
andshell
you run? Maybe you can open new repo and upload the config you use. I will check it.
Ok ,thank u
from uniformer.
Same issue in issue17.
from uniformer.
Related Issues (20)
- About the pretrain model HOT 3
- About the code for ucf101 dataset processing HOT 2
- SABlock is the same as SABlock_windows? HOT 2
- Error in loading videos for testing HOT 7
- Is pos_embed NEED for every Block? HOT 2
- Usage of Image classification with UniFormer with Token Labeling HOT 1
- Thank you very much! I found the answer in the previous answer!
- mmdet object detection pretrained model HOT 1
- Question regarding Imagenet pretraining HOT 4
- The picture has to be pre-trained HOT 1
- which pretrain model is uniformer-small-dim64? HOT 5
- video dataset HOT 2
- some ambiguousness when testing on k400 HOT 1
- Unknown model (uniformer_large_ls) HOT 2
- image_classification_model(Large resolution fine-tuning (384x384)) HOT 3
- What are these "tools/submit.py" and "tools/summit.py" for ? HOT 1
- 大佬您好,我想问一下,关于UniFormer,如果只准备了解模型架构的话,代码是不是只用看这个文件https://github.com/Sense-X/UniFormer/blob/main/video_classification/slowfast/models/uniformer.py就可以了 HOT 1
- Precision HOT 3
- Feature Extraction HOT 1
- About training on my own dataset for video classification HOT 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 uniformer.