ai-forever / ghost

A new one shot face swap approach for image and video domains
Apache License 2.0
1.25k stars 265 forks source link

run error in win10 #38

Open no3eye opened 2 years ago

no3eye commented 2 years ago

i got this error "ModuleNotFoundError: No module named 'utils.inference'",when i run the commond "python inference.py --source_paths "1.png" --target_image "mark.jpg" --image_to_image True"

FBAdmirer commented 2 years ago

i got this error "ModuleNotFoundError: No module named 'utils.inference'",when i run the commond "python inference.py --source_paths "1.png" --target_image "mark.jpg" --image_to_image True"


Try these commands: python inference.py --G_path weights/G_unet_3blocks.pth --num_blocks 3 --batch_size 40 --crop_size 224 --use_sr True --source_paths examples/images/xxx.jpg --target_image examples/images/xxx.jpg --out_image_name examples/results/xxx.png --image_to_image True

python inference.py --use_sr True --source_paths examples/images/xxx.jpg --target_image examples/images/xxx.jpg --out_image_name examples/results/xxx.png --image_to_image True