Comments (6)
thx for your reply!!
btw, I should run distill.py then train_supernet.py , or I just run train_supernet.py after training the teacher model. And what is the difference between the two process.I think the distillation will work, but you may need to add some codes to specify the distillation layers for the mobilenet or unet architecture.
If you need to reproduce our results, you may need to run distill.py then train_supernet.py. The distill.py can make the model compact before the "once-for-all" network training.
As a matter of fact, you could directly run train_supernet.py after training a teacher model if you change the candidate subnet set in resnet_configs. We will release a lite pipeline later which will skip the distillation process.
from gan-compression.
Sorry, I do not quite understand your question. Currently, our codebase only supports ResNet generator because the generators in pix2pix and CycleGAN are in ResNet architecture (on pix2pix, we observe that the ResNet generator is better than the UNet generator, refer to
Network architecture for pix2pix in Appendix 6.2). We do not modify the backbone of the original generator.
from gan-compression.
Sorry, I do not quite understand your question. Currently, our codebase only supports ResNet generator because the generators in pix2pix and CycleGAN are in ResNet architecture (on pix2pix, we observe that the ResNet generator is better than the UNet generator, refer to
Network architecture for pix2pix in Appendix 6.2). We do not modify the backbone of the original generator.
thanks for your reply!
I want to know your code base is compatible with different architecture. That is if I train my teacher model on mobilenet or unet instead of resnet, would the distill work.
from gan-compression.
I think the distillation will work, but you may need to add some codes to specify the distillation layers for the mobilenet or unet architecture.
from gan-compression.
I think the mapping_layers
defines the distillation layers (see this line). We should try to make it as a flag and make it also applicable to other architectures.
from gan-compression.
thx for your reply!!
btw, I should run distill.py then train_supernet.py , or I just run train_supernet.py after training the teacher model. And what is the difference between the two process.
I think the distillation will work, but you may need to add some codes to specify the distillation layers for the mobilenet or unet architecture.
from gan-compression.
Related Issues (20)
- Gray-Scale Input Support HOT 1
- What do these two paths mean?(--metaA_path --metaB_path) HOT 3
- About Select the Best Model (evolution_search.py) HOT 2
- distilling on higer resolution HOT 2
- Distill Problem HOT 4
- "Once-for-all" Network Training Problem HOT 2
- TypeError: _output_padding() missing 1 required positional argument: 'num_spatial_dims' HOT 4
- Guidance to covert pth to ptl
- [Question] About SuperSeparableConv2d HOT 2
- Cannot access to https://hanlab.mit.edu/ HOT 1
- ERROR 403: Forbidden HOT 5
- Request for Access to Pretrained Model for Verification and Replication Purposes. HOT 3
- URL is not supported HOT 7
- Does this way can apply to pix2pixHD model? HOT 2
- How to generate cityscape_A.npz HOT 1
- where is bash scripts/cycle_gan/horse2zebra/search.sh? HOT 1
- "download_real_stat.sh" doesn't work.
- Question about testing the compressed model HOT 1
- Question about the budget setting HOT 2
- about SuperConv2d HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gan-compression.