x-anylabeling-3.0.0 和 3.0.2 对于 sam_hq_vit_l_quant 、am_hq_vit_l 两个模型不能从本体加载
Search before asking
- [x] I have searched the X-AnyLabeling issues and found no similar bug report.
X-AnyLabeling Component
Model
Bug
(x-anylabeling-3) PS D:\x-anylabeling-3.0.0> python anylabeling/app.py
2025-05-27 18:15:58,764 | INFO | app:main:165 - 🚀 X-AnyLabeling v3.0.0 launched!
2025-05-27 18:15:58,765 | INFO | app:main:168 - ⭐ If you like it, give us a star: https://github.com/CVHub520/X-AnyLabeling
2025-05-27 18:15:58,802 | INFO | config:get_config:83 - 🔧️ Initializing config from local file: C:\Users\20441.xanylabelingrc
Traceback (most recent call last):
File "D:\X-AnyLabeling-3.0.0\anylabeling\utils.py", line 15, in run
self.func(*self.args, **self.kwargs)
File "D:\X-AnyLabeling-3.0.0\anylabeling\services\auto_labeling\model_manager.py", line 1161, in load_model
from .sam_hq import SAM_HQ
File "D:\X-AnyLabeling-3.0.0\anylabeling\services\auto_labeling\sam_hq.py", line 25, in
(x-anylabeling-3) PS D:\x-anylabeling-2.5.4> cd ..
(x-anylabeling-3) PS D:> cd x-anylabeling-3.0.2
(x-anylabeling-3) PS D:\x-anylabeling-3.0.2> python anylabeling/app.py
2025-05-27 18:31:05,867 | INFO | app:main:165 - 🚀 X-AnyLabeling v3.0.2 launched!
2025-05-27 18:31:05,867 | INFO | app:main:168 - ⭐ If you like it, give us a star: https://github.com/CVHub520/X-AnyLabeling
2025-05-27 18:31:05,902 | INFO | config:get_config:83 - 🔧️ Initializing config from local file: C:\Users\20441.xanylabelingrc
Traceback (most recent call last):
File "D:\X-AnyLabeling-3.0.2\anylabeling\utils.py", line 15, in run
self.func(*self.args, **self.kwargs)
File "D:\X-AnyLabeling-3.0.2\anylabeling\services\auto_labeling\model_manager.py", line 1161, in load_model
from .sam_hq import SAM_HQ
File "D:\X-AnyLabeling-3.0.2\anylabeling\services\auto_labeling\sam_hq.py", line 25, in
type: sam_hq name: sam_hq_vit_l_quant-r20231111 provider: ETH Zürich display_name: SAM-HQ (ViT-Large Quant) encoder_model_path: sam_hq_vit_l_encoder_quant.onnx decoder_model_path: sam_hq_vit_l_decoder.onnx input_size: 1024 max_width: 1024 max_height: 682 这是yaml文件内容 尝试对 encoder_model_path 和 decoder_model_path 使用绝对路径 模型加载后报相同错误
Information
(x-anylabeling-3) PS D:\x-anylabeling-3.0.0> python anylabeling/checks.py Application Information: {'App name': 'X-AnyLabeling', 'App version': '3.0.0', 'Device': 'CPU'}
System Information: {'CPU': 'Intel64 Family 6 Model 165 Stepping 3, GenuineIntel', 'CUDA': None, 'GPU': None, 'Operating System': 'Windows-10-10.0.19045-SP0', 'Python Version': '3.10.16'}
Package Information: {'ONNX Runtime GPU Version': None, 'ONNX Runtime Version': '1.22.0', 'ONNX Version': '1.18.0', 'OpenCV Contrib Python Headless Version': '4.11.0.86', 'PyQt5 Version': '5.15.7'} (x-anylabeling-3) PS D:\x-anylabeling-3.0.0>
Link to a Reproducible Demonstration Video
暂无
Execution Mode
Source Code
Additional
No response
Are you willing to submit a PR?
- [x] Yes I'd like to help by submitting a PR!
您好,执行下 pip install six 即可。
问题已解决,感谢回复