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

Converting source frames into swapped frames
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Post Reply
User avatar
skivvy
Posts: 6
Joined: Fri Dec 13, 2019 10:56 pm
Answers: 1
Has thanked: 4 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 » Sun Dec 22, 2019 12:37 am

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: 285
Joined: Fri Jul 12, 2019 12:53 am
Answers: 64
Has thanked: 10 times
Been thanked: 63 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 » Sun Dec 22, 2019 3:03 pm

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: 6
Joined: Fri Dec 13, 2019 10:56 pm
Answers: 1
Has thanked: 4 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 » 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.

Post Reply