Comments (10)
animeganv2-hayao-models.zip
Here are the converted models from the checkpoint files if anyone's interested. :)
from animeganv2.
Currently, it is not recommended to change the generator network structure. If you still want to use it on the mobile terminal, you can refer to here: AnimeGANv2をCore MLに変換してiOSでつかう【変換済みモデルあり】 - Qiita https://qiita.com/john-rocky/items/e4c757306b4d8f0f2c36
In addition, AnimeGANv2 has added a new loss function, which cannot be told before all open source. You can use it for fun.
But without money, I may not be able to do more research. Hahaha
from animeganv2.
Maybe you can find a solution from TF Select. Regarding normal padding, what kind of padding do you mean? You might as well try it first. If it doesn't work, I will change the padding method and retrain the weights for you.
from animeganv2.
You can refer to the training code of AnimeGAN. Since AnimeGANv2 is still in the research stage of technology sales, I am not sure whether all the code will be open sourced. And its generator network can still be compressed even smaller. Therefore, for the time being, I cannot have an accurate answer.
from animeganv2.
Thanks for your reply. Let me see what I can do with your suggestion 😊
from animeganv2.
In fact, to run in real-time on a mobile terminal, a model size of several hundred Kb is a common mode. Simply compressing the network structure is not the most important choice. Model pruning is a necessary method.
from animeganv2.
Thanks for your reply.
Yes I've tried quantization for tflite and I managed to get the model size down to 2 MB but full integer quantization isn't happening due to some ops like mirror padding being used in the network which are not supported by tflite.
Do you have any suggestions?
For example, can I replace mirror padding with normal padding?
Thanks for your time 😊
from animeganv2.
Thanks I'll give it a try with the possible alternatives.
from animeganv2.
I meant instead of pattern mode 'reflect' being used in the generator, is it possible to use a different pattern mode in the generator layers.
I think I might figure out a solution soon . If not with modifying the current generator weights , I can probably try training a smaller model with the generator model used as a teacher for the smaller model.
I'll keep you posted regarding my efforts.
Thank you.
from animeganv2.
animeganv2-hayao-models.zip Here are the converted models from the checkpoint files if anyone's interested. :)
hi,@maderix what your model input? i try rgb input but all output is zero, hope your relpy
from animeganv2.
Related Issues (20)
- the generated pictures are some vague
- Where to download the paper of AnimeGANv2? HOT 1
- ImportError: cannot import name 'trace' HOT 2
- 使用项目里自带的模型转换完和原图差别很小?如何增强动漫效果呢? HOT 4
- 在nvidia A4000显卡上无法训练
- Exception has occurred: OperatorNotAllowedInGraphError HOT 5
- How to train face model? HOT 1
- 商业产品合作怎么联系你们 HOT 1
- Could you share how you get the improvements that you mentioned in the readme?
- NFT creator
- Failed to save model
- How to use 512 x 512 or higher-definition pictures for training
- 直接运行代码存在问题 HOT 1
- Requirement file HOT 6
- Why are all the pictures in the sample_dir file_b.jpg black HOT 2
- Is it possible to use AnimeGANv2 without GPU? Only with Intel CPU? HOT 1
- tensorflow-gpu 1.15.0 可以替换成相应的 cpu版本吗 HOT 1
- Anime the picture
- Can this be used without a GPU, on a Mac M1?
- Inference with pre-trained model and sample data is not working. HOT 4
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 animeganv2.