Giter Site home page Giter Site logo

Comments (10)

maderix avatar maderix commented on May 5, 2024 2

animeganv2-hayao-models.zip
Here are the converted models from the checkpoint files if anyone's interested. :)

from animeganv2.

TachibanaYoshino avatar TachibanaYoshino commented on May 5, 2024 1

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.

TachibanaYoshino avatar TachibanaYoshino commented on May 5, 2024 1

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.

TachibanaYoshino avatar TachibanaYoshino commented on May 5, 2024

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.

maderix avatar maderix commented on May 5, 2024

Thanks for your reply. Let me see what I can do with your suggestion 😊

from animeganv2.

TachibanaYoshino avatar TachibanaYoshino commented on May 5, 2024

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.

maderix avatar maderix commented on May 5, 2024

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.

maderix avatar maderix commented on May 5, 2024

Thanks I'll give it a try with the possible alternatives.

from animeganv2.

maderix avatar maderix commented on May 5, 2024

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.

wenfuli avatar wenfuli commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.