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

在IDE运行python label.py遇到无法加载模型 #37

Open
2575156125 opened this issue Nov 18, 2023 · 2 comments
Open

在IDE运行python label.py遇到无法加载模型 #37

2575156125 opened this issue Nov 18, 2023 · 2 comments

Comments

@2575156125
Copy link

No description provided.

@2575156125
Copy link
Author

`Traceback (most recent call last):
File "labelGo.py", line 1744, in
sys.exit(main())
File "labelGo.py", line 1738, in main
app, _win = get_main_app(sys.argv)
File "labelGo.py", line 1731, in get_main_app
args.save_dir)
edit_mode = action(get_str('editBox'), self.set_edit_mode,
File "labelGo.py", line 97, in
get_str = lambda str_id: self.string_bundle.get_string(str_id)
File "F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master\libs\stringBundle.py", line 47, in get_string
assert(string_id in self.id_to_message), "Missing string id : " + string_id
AssertionError: Missing string id : editBox

(labelGo) F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master>python labelGo.py

(labelGo) F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master>python labelGo.py
Traceback (most recent call last):
File "labelGo.py", line 1744, in
sys.exit(main())
File "labelGo.py", line 1738, in main
app, _win = get_main_app(sys.argv)
File "labelGo.py", line 1731, in get_main_app
args.save_dir)
File "labelGo.py", line 281, in init
edit_mode = action(get_str('editBox'), self.set_edit_mode,
File "labelGo.py", line 97, in
get_str = lambda str_id: self.string_bundle.get_string(str_id)
File "F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master\libs\stringBundle.py", line 47, in get_string
assert(string_id in self.id_to_message), "Missing string id : " + string_id
AssertionError: Missing string id : editBox

(labelGo) F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master>python labelGo.py
Traceback (most recent call last):
File "labelGo.py", line 1744, in
sys.exit(main())
File "labelGo.py", line 1738, in main
app, _win = get_main_app(sys.argv)
File "labelGo.py", line 1731, in get_main_app
args.save_dir)
File "labelGo.py", line 281, in init
edit_mode = action(get_str('editBox'), self.set_edit_mode,
File "labelGo.py", line 97, in
get_str = lambda str_id: self.string_bundle.get_string(str_id)
File "F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master\libs\stringBundle.py", line 47, in get_string
assert(string_id in self.id_to_message), "Missing string id : " + string_id
AssertionError: Missing string id : editBox

(labelGo) F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master>python labelGo.py
Image:F:\1project\1python_project\k210\k210\maix_train-master\data\train\bad\0.jpg -> Annotation:F:/1project/1python_project/k210/k210/maix_train-master/data/labeal/0.xml.txt
Image:F:\1project\1python_project\k210\k210\maix_train-master\data\train\bad\0.jpg -> Annotation:F:\1project\1python_project\k210\k210\maix_train-master\data\train\bad\0.txt
YOLOv5 2023-6-22 torch 1.13.1+cpu CPU

Traceback (most recent call last):
File "labelGo.py", line 1388, in auto_label
run(**vars(opt))
File "C:\ProgramData\Anaconda3\envs\labelGo\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master\libs\autoLabeler.py", line 61, in run
model = attempt_load(weights, map_location=device) # load FP32 model
File "F:\1project\1python_project\labelGo-Yolov5AutoLabelImg-master\libs\models\experimental.py", line 96, in attempt_load
ckpt = to`

@2575156125
Copy link
Author

具体的报错信息

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