Simswap colab problem error #482

Open
opened 2025-01-30 11:20:03 +01:00 by planettich · 1 comment
planettich commented 2025-01-30 11:20:03 +01:00 (Migrated from github.com)

Hi guys, in the Simswap colab I get this problem at the end, does anyone know what to do? Many thanks to anyone who can answer me

AssertionError Traceback (most recent call last)

in <cell line: 0>()
17 model.eval()
18
---> 19 app = Face_detect_crop(name='antelope', root='./insightface_func/models')
20 app.prepare(ctx_id= 0, det_thresh=0.6, det_size=(640,640))
21

/content/SimSwap/insightface_func/face_detect_crop_multi.py in init(self, name, root)
45 print('duplicated model task type, ignore:', onnx_file, model.taskname)
46 del model
---> 47 assert 'detection' in self.models
48 self.det_model = self.models['detection']
49

AssertionError:

Image

Hi guys, in the Simswap colab I get this problem at the end, does anyone know what to do? Many thanks to anyone who can answer me AssertionError Traceback (most recent call last) <ipython-input-9-46a887c84c9b> in <cell line: 0>() 17 model.eval() 18 ---> 19 app = Face_detect_crop(name='antelope', root='./insightface_func/models') 20 app.prepare(ctx_id= 0, det_thresh=0.6, det_size=(640,640)) 21 /content/SimSwap/insightface_func/face_detect_crop_multi.py in __init__(self, name, root) 45 print('duplicated model task type, ignore:', onnx_file, model.taskname) 46 del model ---> 47 assert 'detection' in self.models 48 self.det_model = self.models['detection'] 49 AssertionError: ![Image](https://github.com/user-attachments/assets/86154eb0-5610-4dc8-a3de-69e36ed32656)
JiaMengHuo commented 2025-03-21 12:39:03 +01:00 (Migrated from github.com)

Hello, is the problem solved ? I have the same problem, if it is solved, please advise

Hello, is the problem solved ? I have the same problem, if it is solved, please advise
Sign in to join this conversation.