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

About Pixel-Level Distillation Loss #25

Open
zhongtao93 opened this issue Nov 3, 2021 · 3 comments
Open

About Pixel-Level Distillation Loss #25

zhongtao93 opened this issue Nov 3, 2021 · 3 comments

Comments

@zhongtao93
Copy link

zhongtao93 commented Nov 3, 2021

Have you tried using gt['rgb'] instead of gt['img'] to distll the student network? Or the gt['rgb'] is useless.

_gt_rgb = F.interpolate(gt["img"], size=_pred_rgb.size(-1), mode='bilinear', align_corners=True)

@bes-dev
Copy link
Owner

bes-dev commented Nov 3, 2021

@zhongtao93 so, gt["rgb"] contain partial sums of the gt["img"], as we don't use aggregation of intermediate predictions like in StyleGAN2, it isn't correct to use gt["rgb"] here

@zhongtao93
Copy link
Author

Since I want use MobileStyleGAN to blend anime and real face models, like stylegan in toonify. But I found this feature become weakened, especially when I reduce the channels of model.
Feature:

  1. style codes lying in lower layers control coarser attributes like facial shapes,
  2. middle layer codes control more localized facial features,
  3. high layer codes correspond to fine details such as reflectance and texture.

@bes-dev
Copy link
Owner

bes-dev commented Nov 3, 2021

@zhongtao93 I didn't try toonify pipeline on top of MobileStyleGAN. But if you have some experimental results it will be great if you share it.

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