Page 1 of 1

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

Posted: Sun Dec 22, 2019 12:37 am
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.


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

Posted: Sun Dec 22, 2019 3:03 pm
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


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

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

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