New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: test_video_swapspecific.py #63
Comments
The problem is that you cannot iterate over |
Did you test on your own video? |
No. I used the mulri people video and the specific image from demo files so far. |
I use the demo command line for test_video_swapspecific.py :
But it works fine and no error occurs.Did you get the latest version of the code? |
And all the images in the temp result folder are swapped |
I've used the given commandline. it crashes at the moment the specific image is recognized in the video. I've cropped the video so it only contains 2 faces but the same... if specific face does not appear in the video it works, but nothing to swap ;-) I'm not sure to have the latest version... SimSwap code should be up to date. Maybe it is a problem with my GPU - 2GB ? |
It runs OK to this point: video_path: ./demo_file/crop.mp4 |
Could you provide the full Traceback report? |
I'm so sorry.... I've added some extra parameters to reverse2original.py - reversing to the original file now -> So it's my mistake. |
Never mind. Have a nice day~. |
Since test_video_swapsingle is working perfect, first attempt to swap specific face gives following error (after processing a few frames):
Traceback (most recent call last):
File "test_video_swapspecific.py", line 83, in
model, app, opt.output_path,temp_results_dir=opt.temp_path,no_simswaplogo=opt.no_simswaplogo,use_mask=opt.use_mask)
File "C:\Tutorial\SimSwap\util\videoswap_specific.py", line 98, in video_swap
os.path.join(temp_results_dir, 'frame_{:0>7d}.jpg'.format(frame_index)),no_simswaplogo,pasring_model =net,use_mask= use_mask, norm = spNorm)
File "C:\Tutorial\SimSwap\util\reverse2original.py", line 88, in reverse2wholeimage
for swaped_img, mat ,source_img in zip(swaped_imgs, mats,b_align_crop_tenor_list):
TypeError: zip argument #1 must support iteration
The text was updated successfully, but these errors were encountered: