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

Percetual Loss #23

Closed
nicksunyang opened this issue Apr 26, 2021 · 3 comments
Closed

Percetual Loss #23

nicksunyang opened this issue Apr 26, 2021 · 3 comments

Comments

@nicksunyang
Copy link

for midx, mod in enumerate(self.vgg):
es = mod(es)

for i,mod in enumerate(vgg):
... if i == 3:
... print(mod)
...
ReLU(inplace=True)

I can't understand this,why?

@griegler
Copy link
Contributor

Are you refering to this part of the code? What do you not understand?

@nicksunyang
Copy link
Author

Yeah,I suppose mod only represents one layer, eg. i= 3 mod is ReLU.

@griegler
Copy link
Contributor

griegler commented May 2, 2021

Yes, you can verify via print(torchvision.models.vgg19().features).

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