FileNotFoundError when Face swapping for video preset #67

Open
opened 2021-07-24 14:09:51 +02:00 by MarineBirch723 · 3 comments
MarineBirch723 commented 2021-07-24 14:09:51 +02:00 (Migrated from github.com)

Traceback (most recent call last):
File "test_video_swapsingle.py", line 72, in
no_simswaplogo=opt.no_simswaplogo,use_mask=opt.use_mask)
File "C:\Users\Szabolcs\Documents\SimSwap-main\util\videoswap.py", line 55, in video_swap
net.load_state_dict(torch.load(save_pth))
File "C:\Users\Szabolcs.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "C:\Users\Szabolcs.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "C:\Users\Szabolcs.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './parsing_model/checkpoint\79999_iter.pth'

Traceback (most recent call last): File "test_video_swapsingle.py", line 72, in <module> no_simswaplogo=opt.no_simswaplogo,use_mask=opt.use_mask) File "C:\Users\Szabolcs\Documents\SimSwap-main\util\videoswap.py", line 55, in video_swap net.load_state_dict(torch.load(save_pth)) File "C:\Users\Szabolcs\.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 579, in load with _open_file_like(f, 'rb') as opened_file: File "C:\Users\Szabolcs\.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 230, in _open_file_like return _open_file(name_or_buffer, mode) File "C:\Users\Szabolcs\.conda\envs\simswap\lib\site-packages\torch\serialization.py", line 211, in __init__ super(_open_file, self).__init__(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: './parsing_model/checkpoint\\79999_iter.pth'
woctezuma commented 2021-07-24 14:12:00 +02:00 (Migrated from github.com)
https://github.com/neuralchen/SimSwap/issues/14#issuecomment-882444218, #62
MarineBirch723 commented 2021-07-24 15:32:27 +02:00 (Migrated from github.com)

This presents a new error

input mean and std: 127.5 127.5
find model: ./insightface_func/models\antelope\glintr100.onnx recognition
find model: ./insightface_func/models\antelope\scrfd_10g_bnkps.onnx detection
set det-size: (640, 640)
Traceback (most recent call last):
File "test_video_swapsingle.py", line 50, in
img_a_align_crop, _ = app.get(img_a_whole,crop_size)
TypeError: 'NoneType' object is not iterable

This presents a new error input mean and std: 127.5 127.5 find model: ./insightface_func/models\antelope\glintr100.onnx recognition find model: ./insightface_func/models\antelope\scrfd_10g_bnkps.onnx detection set det-size: (640, 640) Traceback (most recent call last): File "test_video_swapsingle.py", line 50, in <module> img_a_align_crop, _ = app.get(img_a_whole,crop_size) TypeError: 'NoneType' object is not iterable
woctezuma commented 2021-07-24 17:48:24 +02:00 (Migrated from github.com)

#39, #44, #46, #53, #66

#39, #44, #46, #53, #66
Sign in to join this conversation.