Giter VIP home page Giter VIP logo

Comments (5)

kyakuno avatar kyakuno commented on May 26, 2024

顔の単位で入力されていそう。バッファにはBGR順、0-255で顔が入っているが、DataLoaderでRGB順、0-1に変換される。

入力のレンジ:RGB順、0-1 torch.Size([5, 3, 256, 256])
出力のレンジ:RGB順、0-1 torch.Size([5, 3, 256, 256])

from ailia-models.

kyakuno avatar kyakuno commented on May 26, 2024

ONNXへの変換スクリプト。

        x = torch.randn(1, 3, 256, 256, requires_grad=True)
        torch.onnx.export(model.netG,              # model being run
                        x,                         # model input (or a tuple for multiple inputs)
                        "netG.onnx",               # where to save the model (can be a file or file-like object)
                        opset_version=11,          # the ONNX version to export the model to
                        input_names = ['input'],   # the model's input names
                        output_names = ['output'], # the model's output names
                        dynamic_axes={'input' : {0 : 'batch_size'},    # variable length axes
                                        'output' : {0 : 'batch_size'}})

from ailia-models.

kyakuno avatar kyakuno commented on May 26, 2024

pix2pixの影響はあまり大きくなく、ghostのほうが画質が綺麗でモデルが更新されているように見える。

ghost

from ailia-models.

kyakuno avatar kyakuno commented on May 26, 2024

前回のエクスポートは2022年4月なのでモデルは更新されていなさそう。
#729
https://github.com/ai-forever/ghost/commits/main/download_models.sh

from ailia-models.

kyakuno avatar kyakuno commented on May 26, 2024

ailiaの方のソースイメージの指定が間違って、beckhamではなくelonになってしまっていただけだった。
ソースイメージを修正すると、ailiaとghostの画質は一致した。

ailia(左:no_use_sr、右:use_sr)

sberswap

from ailia-models.

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.