yolov5で画像認識をしたい
yolov5で本日遊び始めたプログラミングド素人です。下記のサイトを参考にして遊んでいたところ、エラーが出てしまい調べてもよくわからなかったため質問させていただきました。よろしくお願いします。
参考サイト
https://ai-coordinator.jp/yolov5-google-colab
発生している問題・エラーメッセージ
Fusing layers... Model Summary: 213 layers, 7225885 parameters, 0 gradients Traceback (most recent call last): File "detect.py", line 243, in <module> main(opt) File "detect.py", line 238, in main run(**vars(opt)) File "/usr/local/lib/python3.7/dist-packages/torch/autograd/grad_mode.py", line 28, in decorate_context return func(*args, **kwargs) File "detect.py", line 95, in run dataset = LoadImages(source, img_size=imgsz, stride=stride, auto=pt) File "/content/drive/MyDrive/yolov5/utils/datasets.py", line 169, in __init__ raise Exception(f'ERROR: {p} does not exist') Exception: ERROR: /content/drive/My Drive/yolov5/inference/images does not exist --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-5-69473e074b81> in <module>() 1 get_ipython().system('python detect.py --weights yolov5s.pt --img 416 --conf 0.4 --source inference/images/') ----> 2 Image(filename='inference/output/zidane.jpg', width=600) 3 frames /usr/local/lib/python3.7/dist-packages/IPython/core/display.py in __init__(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata) 1019 self.unconfined = unconfined 1020 self.metadata = metadata -> 1021 super(Image, self).__init__(data=data, url=url, filename=filename) 1022 1023 if retina: /usr/local/lib/python3.7/dist-packages/IPython/core/display.py in __init__(self, data, url, filename) 611 self.filename = None if filename is None else unicode_type(filename) 612 --> 613 self.reload() 614 self._check_data() 615 /usr/local/lib/python3.7/dist-packages/IPython/core/display.py in reload(self) 1041 """Reload the raw data from file or URL.""" 1042 if self.embed: -> 1043 super(Image,self).reload() 1044 if self.retina: 1045 self._retina_shape() /usr/local/lib/python3.7/dist-packages/IPython/core/display.py in reload(self) 629 """Reload the raw data from file or URL.""" 630 if self.filename is not None: --> 631 with open(self.filename, self._read_flags) as f: 632 self.data = f.read() 633 elif self.url is not None: FileNotFoundError: [Errno 2] No such file or directory: 'inference/output/zidane.jpg'
あなたの回答
tips
プレビュー