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

Increase the size of input image from xd=256 to xd=1024 or xd=2048 #70

Open
peymanrah opened this issue Sep 28, 2019 · 1 comment
Open

Comments

@peymanrah
Copy link

peymanrah commented Sep 28, 2019

Is there any way to increase the xd (the size of the input image). I receive an error when I use any xd higher than 256 for the global color transfer. It seems the model has been trained only on 256 pixels. Can you please help on how I can input high resolution images? I dont want the network to resize the image to 256 because of image quality or data loss. Any idea or trained model over high resolution images?

@junyanz
Copy link
Owner

junyanz commented Sep 30, 2019

Currently, only 256x models are available. One simple solution is that you upsample the chromatic prediction of the network to the original resolution, and combine it with the original grayscale image.
You can add 1-2 lines in the cell 11 of the notebook.

# do some upsamling for img_pred_withref_fullres
plt.imshow(np.concatenate((img_gray_fullres,img_pred_withref_fullres),axis=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