Skip to content
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

MultiSpecific.ipynb no swiping faces #448

Open
Mega313 opened this issue Sep 24, 2023 · 4 comments
Open

MultiSpecific.ipynb no swiping faces #448

Mega313 opened this issue Sep 24, 2023 · 4 comments

Comments

@Mega313
Copy link

Mega313 commented Sep 24, 2023

My knowledge of coding is little simswap for single faces work perfectly but I tried the multi-faces swap code I hade this problem, I changed just the version of the dependancy
from
!pip install insightface==0.2.1 onnxruntime moviepy !pip install googledrivedownloader !pip install imageio==2.4.1

to
!pip install -q torch==2.0.1 !pip install -q insightface==0.2.1 onnxruntime==1.15.1 !pip install -q moviepy==1.0.3 imageio==2.9.0 !pip install -q googledrivedownloader

to avoid the "ValueError: This ORT build has ['TensorrtExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider']"
there is also track under the number #446 with the same problem
the code I used it from @neuralchen/simswap
Screen Shot 2023-09-25 at 1 49 27 AM

@Atthw
Copy link

Atthw commented Oct 1, 2023

The problem solved or not

@Mega313
Copy link
Author

Mega313 commented Oct 2, 2023

The problem solved or not

Nope, No one helped me :/

@TransAmMan
Copy link

Hi Mega313:

I was getting the "ValueError" and you gave me an idea how to fix it. Here is what I did to fix the problem you are having. I got this from one or two posts here. I'm giving you the code sandwiched between existing lines separated by a space:

opt.use_mask = True ## new feature up-to-date
opt.Arc_path = './arcface_model/arcface_checkpoint.tar'

opt.isTrain = False
opt.crop_size = 224
crop_size = opt.crop_size
torch.nn.Module.dump_patches = True
model = create_model(opt)
model.eval()
if crop_size == 512:
opt.which_epoch = 550000
opt.name = '512'
mode = 'ffhq'
else:
mode = 'None'
app = Face_detect_crop(name='antelope', root='./insightface_func/models')
app.prepare(ctx_id= 0, det_thresh=0.6, det_size=(640,640),mode=mode)

with torch.no_grad():
pic_a = opt.pic_a_path

@Atthw
Copy link

Atthw commented Oct 3, 2023

Where to post this code explain with inages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants