datitran / face2face-demo

pix2pix demo that learns from facial landmarks and translates this into a face
https://medium.com/@datitran/face2face-a-pix2pix-demo-that-mimics-the-facial-expression-of-the-german-chancellor-b6771d65bf66
MIT License
1.44k stars 423 forks source link

Can't load save_path when it is None. #29

Open DineshRajanT opened 5 years ago

DineshRajanT commented 5 years ago

raise ValueError("Can't load save_path when it is None.") ValueError: Can't load save_path when it is None.

pls somebody help me out to solve this issue!!

Atin17 commented 5 years ago

Can you provide more information regarding the problem?

DineshRajanT commented 5 years ago

I can't load my checkpoints even though the directory I mentioned was correct....@Atin17

Atin17 commented 5 years ago

When running the reduce_model.py. Put the face2face model folder generated by pix2pix in the face2face-demo-master (in which your file for loading the model is present i.e. reduce_model.py) and then run the command 'python reduce_model.py --model-input face2face-model --model-output face2face-reduced-model'. If you're having trouble again try putting the checkpoints and other saved model files in the same directory as in reduce_model.py and try running 'python reduce_model.py --model-input ./ --model-output face2face-reduced-model'.