TypeError: cannot unpack non-iterable NoneType object #212

Open
opened 2022-03-19 02:44:15 +01:00 by Orchoidizer · 0 comments
Orchoidizer commented 2022-03-19 02:44:15 +01:00 (Migrated from github.com)

This is the error nessage I get when trying to replace the 'iron_man and multi people video' files with alternative files of my own to attempt my first video head swap.

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

Would anyone be able to throw any light on what I might be doing wrong?

Thanks

This is the error nessage I get when trying to replace the 'iron_man and multi people video' files with alternative files of my own to attempt my first video head swap. TypeError Traceback (most recent call last) [<ipython-input-10-b598fd0016ce>](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 Would anyone be able to throw any light on what I might be doing wrong? Thanks
Sign in to join this conversation.