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

Variable "features" in net.py #15

Open
Hyeokreal opened this issue Jun 13, 2018 · 3 comments
Open

Variable "features" in net.py #15

Hyeokreal opened this issue Jun 13, 2018 · 3 comments
Assignees

Comments

@Hyeokreal
Copy link

Hi, yuamning-hu
Thank you for openning implementation code.

I have a question

In the net.py line 325 - 354,

      for j in range(giters):
        feed_dict, features = self.get_training_feed_dict_and_states(iter)
        if iter == 0:
          feed_dict[self.lr_g] = 0
        feed_dict[self.progress] = progress
        _, g_loss, v_loss, fake_output, new_states = self.sess.run(
            [(self.opt_g, self.opt_v), self.g_loss, self.v_loss,
             self.fake_output, self.new_states],
            feed_dict=feed_dict,
            options=run_options,
            run_metadata=run_metadata)
        if self.cfg.supervised:
          ground_truth = feed_dict[self.ground_truth]
        else:
          ground_truth = None
        self.memory.replace_memory(
            self.memory.images_and_states_to_records(
                fake_output, new_states, features, ground_truth=ground_truth))
        v_loss_pool.append(v_loss)
        g_loss_pool.append(g_loss)

The variable named "features" seems always zeros. Is it meaningful variable ?

@yuanming-hu yuanming-hu self-assigned this Jun 13, 2018
@yuanming-hu
Copy link
Owner

Thanks for the question. You are right features here is not useful.

During development, we tried to feed pretrained AlexNet features to the network, while it didn't help. (Then we got too lazy to remove it, but setting it to zero instead.)

@Hyeokreal
Copy link
Author

Thank you so much.

I really love your research and i also think it is very useful to real-world tasks.

I have one more question. Have you ever tried GAIL structure for this photo-enhancement task ?
I think GAIL structure could be simply implemented to your structure. So I wonder if you tried.
If not, i'm gonna try it : )

@yuanming-hu
Copy link
Owner

Thanks!
I haven't trailed GAIL but (based on the abstract of that paper,) it sounds very relevant to our work. Please let me posted if you find anything interesting!

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