lib.utils.FaceswapError: There should be 1 state file in your model folder. 0 were found. Specify a trainer with the '-t

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
skivvy
Posts: 24
Joined: Fri Dec 13, 2019 10:56 pm
Answers: 1
Has thanked: 10 times

lib.utils.FaceswapError: There should be 1 state file in your model folder. 0 were found. Specify a trainer with the '-t

Post by skivvy »

So i'm getting the below when i try to convert after i've done my training. I've used both Dfaker and Original. Not sure what i screwed up. My workflow has stayed the same. Also i can see the dfaker_state file in the file path
C:\Users\xxxxx\Desktop\Deep Fakes 2\xxxxx\Model\dfaker_logs_snapshot_25001_iters\dfaker_logs\dfaker_logs\d_faker_state

Traceback (most recent call last):
File "C:\Users\small\faceswap\lib\cli.py", line 128, in execute_script
process = script(arguments)
File "C:\Users\small\faceswap\scripts\convert.py", line 46, in init
self.predictor = Predict(self.disk_io.load_queue, self.queue_size, arguments)
File "C:\Users\small\faceswap\scripts\convert.py", line 430, in init
self.model = self.load_model()
File "C:\Users\small\faceswap\scripts\convert.py", line 495, in load_model
trainer = self.get_trainer(model_dir)
File "C:\Users\small\faceswap\scripts\convert.py", line 512, in get_trainer
"option.".format(len(statefile)))
lib.utils.FaceswapError: There should be 1 state file in your model folder. 0 were found. Specify a trainer with the '-t', '--trainer' option.

by skivvy » Mon Dec 23, 2019 6:20 pm

I wound up manually correcting the file path and got it straightened out. not sure what happened though.

Go to full post
User avatar
torzdf
Posts: 2649
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 128 times
Been thanked: 623 times

Re: lib.utils.FaceswapError: There should be 1 state file in your model folder. 0 were found. Specify a trainer with the

Post by torzdf »

That file path looks all sorts of screwy.

Will do a double check of how it's doing snapshots, but the model folder you should be pointing at is not a snapshot folder, it's the original

My word is final

User avatar
skivvy
Posts: 24
Joined: Fri Dec 13, 2019 10:56 pm
Answers: 1
Has thanked: 10 times

Re: lib.utils.FaceswapError: There should be 1 state file in your model folder. 0 were found. Specify a trainer with the

Post by skivvy »

I wound up manually correcting the file path and got it straightened out. not sure what happened though.

Locked