Can model compression be used for GAN? #4219
-
Thank you for a really great job! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @yy2016417 , |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help ! |
Beta Was this translation helpful? Give feedback.
Hi @yy2016417 ,
Yes. Since most generative adversarial networks use
Linear
andConv2d
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 aconfig_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.