-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
which weight file can be used? #5
Comments
As noted in README.md, generalization is not good as author's. I tried some people not included in train images. As a result, some are so so (but with worse resolution) and some are collapsed. To achieve the quality like author's, I think it is required to put more technique into training, but still I can't make it clear. If I have more trial, maybe I will try smaller value for pixel loss coefficient and larger value for adversarial loss coefficient with time planning. |
I try the model 'epoch0480_loss0.560.hdf5',but i don't know where is the result img, could you tell me how to find it ? |
Please see misc/demo.py
|
Thanks for your reply. I have tested some images in the demo, but the results are not good enough. Is there a way to see the same direction in the result image eyes as the original image? |
@tema0000 hello,I run demo.py but I can't get the result image from pred_faces,Can you tell me how to save result image?Thank you very much! |
you can save the result using cv2.imwrite('xxx.jpg', pred_faces[0,]) |
the results are bad! |
|
the code in tpgan.py is filepath = filepath. You can delete " = filepath". |
the results of the projects are not good for my test pictures. |
When I run demo.py, I only see 'input leye' in the console window, for a long time. I have given the test image path, the generator-weights path in demo.py, and the lcnn_extractor_weights path in the tpgan.py. Is there anything else I have to do or add? Should I press any button to get the output, because I see key == ord('s'), and key == ord('p') in the program? |
I have downloaded all file from google drive,but i don't know which can use to run your demo.
i have try the file in "weights_file/discriminator/epoch0480_loss0.560.hdf5",but the result is terrible when i use my photo as the input image.
The text was updated successfully, but these errors were encountered: