Open ZJLauu opened 1 year ago
It seems that the issue has been fixed in the latest version. Please update your mmseg to the latest version.
@xiexinch @AI-Tianlong @ZJLauu I have the same bug and I use the latest version. How to fix the bug is :
---->
Icommented this part of the code:
or
the result is
I meet the same error
@xiexinch @AI-Tianlong @ZJLauu I have the same bug and I use the latest version. How to fix the bug is :
---->
Icommented this part of the code:
or
the result is
hi,I also tried my model through the code you modified. The 4-channel input of my model still reported an error after changing the inputs to none. Could it be that the 4-channel cannot be calculated?
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug (ValueError: "input_shape" and "inputs" cannot be both set.) occurs while running tools/analysis_tools/get_flops.py
Reproduction
What command or script did you run?
or
Did you make any modifications on the code or config? Did you understand what you have modified? no
What dataset did you use? customdataset
Environment
python mmseg/utils/collect_env.py
to collect necessary environment information and paste it here.sys.platform: win32 Python: 3.9.0 (default, Nov 15 2020, 08:30:55) [MSC v.1916 64 bit (AMD64)] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 4080 CUDA_HOME: D:\Program Files\NVIDAI GPU Computing Toolkit\CUDA\v11.8 NVCC: Cuda compilation tools, release 11.8, V11.8.89 MSVC: 用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.35.32216.1 版 GCC: n/a PyTorch: 2.0.0+cu118 PyTorch compiling details: PyTorch built with:
TorchVision: 0.15.1+cu118 OpenCV: 4.7.0 MMEngine: 0.7.2 MMSegmentation: 1.0.0+462fad8
Error traceback
If applicable, paste the error trackback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!