Help please! Simswap Colab Demo gives error #350

Open
opened 2022-11-24 12:51:03 +01:00 by sonnysroom · 1 comment
sonnysroom commented 2022-11-24 12:51:03 +01:00 (Migrated from github.com)

https://colab.research.google.com/github/neuralchen/SimSwap/blob/main/SimSwap%20colab.ipynb

After going through all the steps in the above link, I get the following error. Kindly help, I am a new user.

TypeError Traceback (most recent call last)
in
24 # img_a = Image.open(pic_a).convert('RGB')
25 img_a_whole = cv2.imread(pic_a)
---> 26 img_a_align_crop, _ = app.get(img_a_whole,crop_size)
27 img_a_align_crop_pil = Image.fromarray(cv2.cvtColor(img_a_align_crop[0],cv2.COLOR_BGR2RGB))
28 img_a = transformer_Arcface(img_a_align_crop_pil)

TypeError: cannot unpack non-iterable NoneType object

https://colab.research.google.com/github/neuralchen/SimSwap/blob/main/SimSwap%20colab.ipynb After going through all the steps in the above link, I get the following error. Kindly help, I am a new user. TypeError Traceback (most recent call last) [<ipython-input-9-99a1b7cecd47>](https://localhost:8080/#) in <module> 24 # img_a = Image.open(pic_a).convert('RGB') 25 img_a_whole = cv2.imread(pic_a) ---> 26 img_a_align_crop, _ = app.get(img_a_whole,crop_size) 27 img_a_align_crop_pil = Image.fromarray(cv2.cvtColor(img_a_align_crop[0],cv2.COLOR_BGR2RGB)) 28 img_a = transformer_Arcface(img_a_align_crop_pil) TypeError: cannot unpack non-iterable NoneType object
Loc-VD commented 2022-12-08 08:12:54 +01:00 (Migrated from github.com)

Maybe you are using close-up photo. in the python file you are executing , eg: test_wholeimage_swapsingle.py , find the det_thresh set to 0.1 and run again

Maybe you are using close-up photo. in the python file you are executing , eg: ```test_wholeimage_swapsingle.py``` , find the ```det_thresh``` set to ```0.1``` and run again
Sign in to join this conversation.