PermissionError: [Errno 13] Permission denied:
我把下载的预训练模型放到根目录weights目录下了,然后把handpose.cfg的修改为: detect_model_path=./weights detect_model_arch=yolo detect_input_size = 416 yolo_anchor_scale=1. detect_conf_thres=0.4 detect_nms_thres=0.45
handpose_x_model_path=./ReXNetV1-size-256-wingloss102-0.122.pth handpose_x_model_arch=rexnetv1
classify_model_path=./imagenet_size-256_20210409.pth classify_model_arch=resnet_50 classify_model_classify_num=1000
camera_id = 0 vis_gesture_lines = True charge_cycle_step = 18
然后就报这个错误: load model component ... yolo v3 hand_model loading : ./weights Process Process-2: Traceback (most recent call last): File "D:\Anaconda3\envs\pytorch1.7\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "D:\Anaconda3\envs\pytorch1.7\lib\multiprocessing\process.py", line 93, in run self._target(*self._args, **self._kwargs) File "D:\SynologyDrive\Tutorials\Machine Learning\dpcas\dpcas-master\applications\handpose_local_app.py", line 222, in handpose_x_process img_size = float(config["detect_input_size"]), File "./components\hand_detect\yolo_v3_hand.py", line 275, in init self.model.load_state_dict(torch.load(weights, map_location=lambda storage, loc: storage)['model']) File "D:\Anaconda3\envs\pytorch1.7\lib\site-packages\torch\serialization.py", line 594, in load with _open_file_like(f, 'rb') as opened_file: File "D:\Anaconda3\envs\pytorch1.7\lib\site-packages\torch\serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "D:\Anaconda3\envs\pytorch1.7\lib\site-packages\torch\serialization.py", line 211, in init super(_open_file, self).init(open(name, mode)) PermissionError: [Errno 13] Permission denied: './weights'
搞了很久了,求助啊!谢谢!