Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESRGAN Anime_B6 #29

Open
Jumaron opened this issue Mar 8, 2023 · 8 comments
Open

ESRGAN Anime_B6 #29

Jumaron opened this issue Mar 8, 2023 · 8 comments

Comments

@Jumaron
Copy link

Jumaron commented Mar 8, 2023

Hello guys,

i would love to ask if you could provide the ESRGAN Anime_B6 model as optimized .onnx Model like you have with the animvideov3 as example.
I had problems converting it to .onnx, hope you could help.

As always thanks for the work and keep it up!

@WolframRhodium
Copy link
Contributor

What's the problem?

@Jumaron
Copy link
Author

Jumaron commented Mar 8, 2023

Its not the fault of this project, it is most likely my code for transforming .pth to .onnx.

@Jumaron
Copy link
Author

Jumaron commented Mar 8, 2023

The error Code: [03/08/2023-14:44:46] [E] Error[4]: [network.cpp::nvinfer1::Network::validate::3076] Error Code 4: Internal Error (input: for dimension number 2 in profile 0 does not match network definition (got min=480, opt=480, max=480), expected min=opt=max=512).)

@WolframRhodium
Copy link
Contributor

set dynamic_axes during onnx conversion

torch.onnx.export(..., dynamic_axes=dict(input={0: "batch", 2: "height", 3: "width"}))

@Jumaron
Copy link
Author

Jumaron commented Mar 8, 2023

Thanks, but now my 3070 GPU is running out of RAM i have 8 GB and i need 9 :(
Still thanks, your a beast creating all of this.

@dtlnor
Copy link

dtlnor commented Mar 9, 2023

Thanks, but now my 3070 GPU is running out of RAM i have 8 GB and i need 9 :( Still thanks, your a beast creating all of this.

you may try HolyWu's vs-realesrgan (no guarantee to be able to work with mlrt) https://github.com/HolyWu/vs-realesrgan/releases/tag/model

@ViRb3
Copy link

ViRb3 commented Mar 15, 2023

You can get an onnx from here, I can confirm it works with mlrt: https://github.com/styler00dollar/VSGAN-tensorrt-docker/releases/tag/models

@Jumaron
Copy link
Author

Jumaron commented Mar 16, 2023

Thanks both of you! Working now as it should. <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants