Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accuracy/top1 does not meet expectations, and the predicted results are in the same category #1861

Open
6sz opened this issue Jan 9, 2024 · 0 comments

Comments

@6sz
Copy link

6sz commented Jan 9, 2024

分支

main 分支 (mmpretrain 版本)

描述该错误

Using MobileNet-V3 and ConvNeXt_v2 to train the model, modifying only number_classes ,topk and using the default parameters, the inference results remained accuracy/ top1:51.9751 .This is not the case with networks such as resnet and resnext.

image
The confusion matrix results are as follows:
3655c828b528bea39ecbc9202c55ac5

Data set picture size is 224*224, a total of 4 classes
1-1-493-20230713161755

I tried to modify the loss function to CrossEntropyLoss ,simplify data preprocessing operations in train_pipeline and cancel the augments operation during model training, but still failed to solve the problem. Please kindly ask experts for help.

环境信息

{'sys.platform': 'linux',
'Python': '3.8.0 (default, Nov 6 2019, 21:49:08) [GCC 7.3.0]',
'CUDA available': True,
'numpy_random_seed': 2147483648,
'GPU 0': 'NVIDIA GeForce RTX 4090',
'CUDA_HOME': '/usr/local/cuda-11.1',
'NVCC': 'Cuda compilation tools, release 11.1, V11.1.105',
'GCC': 'gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0',
'PyTorch': '1.10.0',
'TorchVision': '0.11.1',
'OpenCV': '4.7.0',
'MMEngine': '0.7.0',
'MMCV': '2.0.1',
'MMPreTrain': '1.0.0rc7+'}

其他信息

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant