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

Is perceptual loss using a random initialized VGG? #6

Open
bladewaltz1 opened this issue Jan 30, 2024 · 3 comments
Open

Is perceptual loss using a random initialized VGG? #6

bladewaltz1 opened this issue Jan 30, 2024 · 3 comments

Comments

@bladewaltz1
Copy link

Hi, thanks for sharing the code. Here seems that you are using a pretrained=False VGG network. I wonder if this is the common practice? Thanks

@YinAoXiong
Copy link

Hi, thanks for sharing the code. Here seems that you are using a pretrained=False VGG network. I wonder if this is the common practice? Thanks

In fact, there is no need to load the pre-trained vgg, because the pre-trained vgg_lpips will be loaded later, which will overwrite the previous weights.

@bladewaltz1
Copy link
Author

Hi, thanks for sharing the code. Here seems that you are using a pretrained=False VGG network. I wonder if this is the common practice? Thanks

In fact, there is no need to load the pre-trained vgg, because the pre-trained vgg_lpips will be loaded later, which will overwrite the previous weights.

Thanks for your reply. Would you mind sharing me the code of loading the pre-trained vgg_lpips in this codebase?

@YinAoXiong
Copy link

Hi, thanks for sharing the code. Here seems that you are using a pretrained=False VGG network. I wonder if this is the common practice? Thanks

In fact, there is no need to load the pre-trained vgg, because the pre-trained vgg_lpips will be loaded later, which will overwrite the previous weights.

Thanks for your reply. Would you mind sharing me the code of loading the pre-trained vgg_lpips in this codebase?

pre-trained vgg_lpips will be auto download in this function

def get_ckpt_path(name, root, check=False):

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