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

Open
opened 2021-10-21 18:12:07 +02:00 by craigfakeboss · 3 comments
craigfakeboss commented 2021-10-21 18:12:07 +02:00 (Migrated from github.com)

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?

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 <module> 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 2021-10-22 20:48:07 +02:00 (Migrated from github.com)

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

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 2021-11-05 14:05:43 +01:00 (Migrated from github.com)

@swastikdeeplearning Solution worked for me as well. Thanks.

@swastikdeeplearning Solution worked for me as well. Thanks.
sxf97 commented 2021-11-16 09:49:19 +01:00 (Migrated from github.com)

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

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](https://user-images.githubusercontent.com/74477028/141952871-31ec47e2-ca1c-4627-b088-02b19e41c7f7.png)
Sign in to join this conversation.