PeterL1n / BackgroundMattingV2

Real-Time High-Resolution Background Matting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FileNotFoundError when using inference_images.py

myycurs opened this issue · 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!