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

How to create & learning color hints to model... #144

Open
dev6969 opened this issue Oct 29, 2018 · 2 comments
Open

How to create & learning color hints to model... #144

dev6969 opened this issue Oct 29, 2018 · 2 comments

Comments

@dev6969
Copy link

dev6969 commented Oct 29, 2018

would like to keep learning the code while continuing to use another network model. But I do not understand how to learn color information in this project ....

  1. I think one of the four input channels is a line channel and the remaining three channels are color information. However, I can not understand how to create color hints from the original image.
    What I understood = 4ch -> 1ch (line) + 3ch (color hint)[how create color hint!?]

  2. Why does "img2imgDataset.get_example ()" randomly add noise to the image?

@taizan
Copy link
Contributor

taizan commented Oct 30, 2018

1.randomly leak original color information
2.data augmentation for stable training

@dev6969
Copy link
Author

dev6969 commented Oct 31, 2018

thank you for your reply. !!!!(comments did not come up.)
I understood the way. and

    image1 = np.insert(image1, 1, -512, axis=2)  # -512?!
    image1 = np.insert(image1, 2, 128, axis=2)
    image1 = np.insert(image1, 3, 128, axis=2)

Adjusting the color range in this way
for recognize a range does not have color information?

not adjusting the range -1 ~ 1

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

2 participants