Skip to content
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

A question about another program #2

Open
marvellousxf opened this issue Jul 27, 2019 · 6 comments
Open

A question about another program #2

marvellousxf opened this issue Jul 27, 2019 · 6 comments

Comments

@marvellousxf
Copy link

In the Deep Photo Enhancer , you have written this:

I've tried with @laol777's shared code. The model trained without replacing FLAGS['data_image_size'] to None also works. Hope for further communication. @liulizhou

I mean you only need to replace FLAGS['data_image_size'] to None in infer process

I wonder if you mean I don not need to retrain the model。 I can use the pair-training model(604) to make inference on arbitary resolution image?
What should I do with the model to do the inference?

@laol777
Copy link

laol777 commented Jul 27, 2019

Why do you ask in this project?
You cannot get from the pretrained model from this repo prediction for arbitrary image size. I shared snippet before for inference. I order to make a prediction for arbitrary resolution i rebuilt the graph, it can help you https://gist.github.com/m12sl/5fc45edede65ec3f007ebbe2baa7ced4

@marvellousxf
Copy link
Author

marvellousxf commented Jul 27, 2019 via email

@marvellousxf
Copy link
Author

marvellousxf commented Jul 27, 2019 via email

@laol777
Copy link

laol777 commented Jul 27, 2019

Excuse me, I forgot details about the project. You don't need to make operations with graphs, which i gave above (it need only for tensorflow-serving), All others advice (nothinglo/Deep-Photo-Enhancer#51) are correct

@xiaozhi2015
Copy link
Owner

xiaozhi2015 commented Jul 29, 2019

The author has already released his official implementation for inference with arbitrary resolution.

@marvellousxf
Copy link
Author

He has released the unpair training model 999 for inference arbitary resolution. But I really need model 604 which is a U-net with global feature and trained by image pairs. I hope to know how to train the model for arbitaty resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants