neuralchen / SimSwap

An arbitrary face-swapping framework on images and videos with one single trained model!
Other
4.47k stars 884 forks source link

"./checkpoints\people\latest_net_G.pth not exists yet!" problem #130

Open craigfakeboss opened 2 years ago

craigfakeboss commented 2 years ago

Went through the installation process without a problem. Try to test the first swap from demo directory to see how it works and got this message.

./checkpoints\people\latest_net_G.pth not exists yet! Traceback (most recent call last): File "test_video_swapsingle.py", line 40, in model = create_model(opt) File "C:\SimSwap-main\models\models.py", line 18, in create_model model.initialize(opt) File "C:\SimSwap-main\models\fs_model.py", line 71, in initialize self.load_network(self.netG, 'G', opt.which_epoch, pretrained_path) File "C:\SimSwap-main\models\base_model.py", line 58, in load_network raise('Generator must exist!') TypeError: exceptions must derive from BaseException

I have latest_net_G.pth in proper directory. Did I miss a step in installation?

swastikdeeplearning commented 2 years ago

Hey, even I was facing the same issue. I had extracted the checkpoints.zip directly into the root dir. You should first create a folder called checkpoints in the root dir and then extract into that.

Root ---> Checkpoints --> People

This solved it for me

Haris33-coder commented 2 years ago

@swastikdeeplearning Solution worked for me as well. Thanks.

sxf97 commented 2 years ago

There is such an error when running the code:“No such file or directory: 'models/BEST_checkpoint.tar'”,I did not find this file anywhere in the code!!! )A)UMO{F$8M@8D%H6U2OJDX