-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug] KeyError: 'gt_label' #1888
Comments
I also met this error,how do you solve it? |
你可以重点关注data_prefix=XXX这一部分,将原有的split=XXX进行替换。 |
@yanshuangying888 你好,我也遇到了同样的问题,按照您的方法修改了data_prefix后,依旧没有得到解决 |
@Jayden-ch 您好,朋友,很高兴能够回复您,我在修正此问题时,参考了以往的mmpretrain版本,我将以往能运行的版本进行了代码保存,并与报错代码进行比对,直到修改了data_prefix后才修正,因为每一位开发者的机型与环境都不一定完全相同,您可以根据以往的版本作为参考,看看能不能修复您的报错,您也可以尝试将我的修正代码改变必要的参数后在您的环境运行,希望能够帮助到您。(When I corrected this problem, I referred to the previous versions of mmpretrain. I saved the code of the previous versions that could run and compared them with the error code. I did not correct it until I modified data_prefix, because the model and environment of each developer may not be exactly the same. You can use the previous version as a reference to see if you can fix your error, you can also try my fix code to change the necessary parameters to run in your environment, I hope it can help you.) |
分支
main 分支 (mmpretrain 版本)
描述该错误
config.py内容如下:(The contents of config.py are as follows:)
请问这么解决这个问题呢?感激不尽您的建议。(How do you solve this problem? Your advice is greatly appreciated.)
环境信息
{'sys.platform': 'win32',
'Python': '3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, '
'13:26:23) [MSC v.1916 64 bit (AMD64)]',
'CUDA available': True,
'MUSA available': False,
'numpy_random_seed': 2147483648,
'GPU 0': 'NVIDIA GeForce RTX 4090',
'CUDA_HOME': 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1',
'NVCC': 'Cuda compilation tools, release 12.1, V12.1.105',
'MSVC': '用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.39.33521 版',
'GCC': 'n/a',
'PyTorch': '2.1.2+cu121',
'TorchVision': '0.16.2+cu121',
'OpenCV': '4.9.0',
'MMEngine': '0.10.3',
'MMCV': '2.1.0',
'MMPreTrain': '1.2.0+unknown'}
其他信息
No response
The text was updated successfully, but these errors were encountered: