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

Infrared image colorization #41

Open
songyn95 opened this issue Jul 20, 2022 · 5 comments
Open

Infrared image colorization #41

songyn95 opened this issue Jul 20, 2022 · 5 comments

Comments

@songyn95
Copy link

  • At present, the test gray-scale image colorization effect is very good, but when I use infrared image colorization, it has no effect. How can I improve it?
@hmmlillian
Copy link
Collaborator

Hi @songyn95 , since our model is trained with grayscale images in ImageNet dataset, I do not think it can be directly applied to infrared images. You may need to re-train or re-design the network for the task of infrared image colorization using infrared images.

@songyn95
Copy link
Author

@hmmlillian Which network do you think needs to be retrained? vgg19_ Grey, colornet or something else? At present, I may feel that I need to retrain the vgg19 network with infrared images.
It is worth mentioning that is there a good example of training vgg19 network? I want to refer to it

@hmmlillian
Copy link
Collaborator

@songyn95 I think both networks (vgg19_gray and colorization subnet) need to be retrained, since the input image of both networks have to be replaced by infrared images. To train a classification network like vgg19, you need the class labels of infrared images and refer to the original paper of vgg network.

@songyn95
Copy link
Author

  1. Since I do image translation, that is, infrared image to RGB image, the number of categories cannot be distinguished. How to solve this situation?
  2. Can I provide the training script of colorization subnet so that I can understand how to train

@songyn95
Copy link
Author

songyn95 commented Aug 1, 2022

In addition, I have another question. If I set require_grad=True when loading pretraining model. Can we achieve better results without retraining(infrared image to RGB image)?Examples are as follows:

color_net = ExampleColorNet(ic=13)
color_net.load_state_dict(torch.load(opt.train_model, map_location=lambda storage, loc: storage))
for param in color_net.parameters():
        param.requires_grad = True

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