일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- pdf merge
- 사무자동화 #Selenium
- computervision
- 사무자동화
- ironpython
- pypdf2
- YOLOv5
- pythonnet
- google cloud
- Google API
- Text-to-Speech
- 파이썬 #업무자동화 #python
- 업무자동화
- DeepLearning
- processstart
- yolo
- YOLOv7
- pyautogui
- Text To Speech
- objectdetection
- Today
- Total
Doarchive
YOLOv7 Error : subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128. 본문
YOLOv7 Error : subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128.
오순발닦개 2023. 4. 5. 11:24
1. 학습시 에러가 발생하는 경우 (train.py)
KeyError: 'assets'
During handling of the above exception, another exception occurred: Traceback (most recent call last):
File "/content/gdrive/MyDrive/guideDetection/yolov7/train.py", line 616, in <module> train(hyp, opt, device, tb_writer)
File "/content/gdrive/MyDrive/guideDetection/yolov7/train.py", line 86, in train attempt_download(weights) # download if not found locally
File "/content/gdrive/MyDrive/guideDetection/yolov7/utils/google_utils.py", line 31, in attempt_download tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128.
YOLOv7 train.py 파일을 수정해준다
85,86 lines 주석처리if pretrained:
2. 테스트시 에러가 발생하는 경우 (detect.py)
KeyError: 'assets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/content/gdrive/MyDrive/guideDetection/yolov7/detect.py", line 196, in <module> detect()
File "/content/gdrive/MyDrive/guideDetection/yolov7/detect.py", line 34, in detect model = attempt_load(weights, map_location=device) # load FP32 model
File "/content/gdrive/MyDrive/guideDetection/yolov7/models/experimental.py", line 249, in attempt_load attempt_download(w)
File "/content/gdrive/MyDrive/guideDetection/yolov7/utils/google_utils.py", line 31, in attempt_download tag = subprocess.check_output('git tag', shell=True).decode().split()[-1]
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'git tag' returned non-zero exit status 128.
yolov7/models/experimental.py 파일을 수정한다
251 line 주석처리
'Computer Vision > Deep learning' 카테고리의 다른 글
GAN 모델의 종류 DCGAN , LSGAN , Conditional GAN (0) | 2023.04.13 |
---|---|
YOLOv7 사용 방법 (0) | 2023.04.05 |
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 7884: invalid start byte 해결 방법 (0) | 2023.03.28 |
Keras Mnist dataset 을 로드 할 수 없을 때 (Mac) (0) | 2021.04.09 |
virtualenv 사용법 (0) | 2021.04.09 |