Git Product home page Git Product logo

face-upscalers-onnx's People

Contributors

harisreedhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

face-upscalers-onnx's Issues

size reduced models

I'm planning to create an app in Unity3D using barracuda. the model size seems larger than expected. Can you help me to create a low size models like tflite?

A quality decrease of gfpgan-onnx

I have tested gfpganv1.4.onnx on my custom image. However, it leads to a quality decrease (compared with gfpganv1.4.pth).

Thus, I want to know the reasons and figure out how to achieve the same quality as gfpganv1.4.pth. My test code and results are attached below.

# gfpgan v1.4 pytorch
from gfpgan import GFPGANer

def load_sr():
    run_params = GFPGANer(
        model_path="checkpoints/GFPGANv1.4.pth",
        upscale=1,
        arch="clean",
        channel_multiplier=2,
        bg_upsampler=None,
    )
    return run_params

def upscale(image, properties):
    _, _, output = properties.enhance(
        image, has_aligned=False, only_center_face=False, paste_back=True
    )
    return output

image

# inference with onnx
from GFPGAN.GFPGAN import GFPGAN

def load_sr_onnx():
    gfpganv14 = GFPGAN(model_path="GFPGANv1.4.onnx", device="cuda")
    return gfpganv14

def upscale_onnx(image, model):
    return model.enhance(image)

image

Is possible to convert any of this Face upscalers to NCNN?

I need that, because my GPU is AMD, and only works with NCNN, and with CPU only takes a LOT time to do an upscale.
I've tried to convert any of this models with chaiNNer from ONNX or PTH to NCNN without success.
Previously was able to convert some models from PTH or ONNX.
I don't know nothing about to code, maybe a simple bash script sometimes.

Thank you

for sharing code and converted models.

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.