-
Notifications
You must be signed in to change notification settings - Fork 65
TypeError: load() missing 1 required positional argument: 'Loader' #11
Comments
请问您这个问题解决了吗? |
I am getting the same error as well. |
After installing all the libraries in requirement.txt of yolov5 and deepsort, we run the command and get the error as: Traceback (most recent call last): Initialize DeepSORT & YOLO-V5 Please help. |
In the file parser.py in line 34, if name == "main":
We are creating a cfg object by passing yolov3.yaml in the configs directory. This file is absent in the configs directory. Moreover, we are using yolov5 here. I guess this could be the error here. Will passing the yolov5 yaml file correct this error? |
Still getting the same error. Please help. |
hi, i find a method to solve this. as stack-overflow, you can just change |
Replace with this code |
File "/root/miniconda3/envs/py38/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl After modifying the parser, there is still error msg |
请在后面加入这个,这是因为yaml文件的加载函数已经更新了。yaml.load(file,Loader=yaml.FullLoader) |
replace yaml.load with yaml.safe_load |
No description provided.
The text was updated successfully, but these errors were encountered: