Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Can model compression be used for GAN? #4219

Answered by xiaowu0162
yy2016417 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yy2016417 ,
Yes. Since most generative adversarial networks use Linear and Conv2d as their basic building blocks, you can apply NNI pruning and quantization tools to compress them. You can refer to here for examples of how to specify a config_list and use the tools provided by NNI. Although we don't have an example for compressing GANs, the general process should be very similar.
As a side remark, I think only compressing the generator should be enough for most cases.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by scarlett2018
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #4048 on September 26, 2021 09:48.