BackgroundMattingV2 icon indicating copy to clipboard operation
BackgroundMattingV2 copied to clipboard

FileNotFoundError when using inference_images.py

Open myycurs opened this issue 4 years ago • 0 comments

there is a FileNotFoundError when i using inference_images.py ,log is as below:

3%|▎ | 1/35 [00:01<01:02, 1.84s/it] Exception in thread Thread-2: Traceback (most recent call last): File "C:\Python37\lib\threading.py", line 917, in _bootstrap_inner self.run() File "C:\Python37\lib\threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "D:/Learning2/DL/code/BackgroundMattingV2-master/inference_images.py", line 121, in writer img.save(path) File "D:\Learning2\DL\code\env\background_matting_v2\lib\site-packages\PIL\Image.py", line 2161, in save fp = builtins.open(filename, "w+b") FileNotFoundError: [Errno 2] No such file or directory: 'D:/Learning2/DL/code/BackgroundMattingV2-master/result\com\0.png'

...

How should I solve this problem?thank you vert much!

myycurs avatar Sep 18 '21 03:09 myycurs