Coder Social home page Coder Social logo

Comments (7)

ArchieMeng avatar ArchieMeng commented on May 21, 2024 1

pnnx

from realsr-ncnn-vulkan.

kodxana avatar kodxana commented on May 21, 2024

That same question :)

from realsr-ncnn-vulkan.

WubTheGame avatar WubTheGame commented on May 21, 2024

If you want a much simpler solution (Literally drag and drop), you can download Cupscale, and:
1: Navigate in your Cupscale directory to CupscaleData\bin\pth2ncnn
2: Place your .pth model into the folder with the pth2ncnn.exe, and then drag that model onto the executable. A CMD will open and begin converting the model into a bin and param file for use with NCNN executables. Your files will be placed in a subfolder with the name of the file you converted, though you'll want to rename the converted files back to the original.

Hope this helps.

from realsr-ncnn-vulkan.

monday1313 avatar monday1313 commented on May 21, 2024

I tried the pth2ncnn.exe . It opens the CMD window for a split second then closes it, but no files are written. I'm on a Mac running windows 10 on Parallels... It has full disk access... any idea what's happening? Thanks!

from realsr-ncnn-vulkan.

WubTheGame avatar WubTheGame commented on May 21, 2024

I tried the pth2ncnn.exe . It opens the CMD window for a split second then closes it, but no files are written. I'm on a Mac running windows 10 on Parallels... It has full disk access... any idea what's happening? Thanks!

I have no idea. Can you get an idea of what the CMD is saying? That's the only way I know could help.

from realsr-ncnn-vulkan.

JiSiN3000 avatar JiSiN3000 commented on May 21, 2024

i tried it too with pth2ncnn.exe and a model (.pth) drag-n-drop.
the message is only for a split second visible on CMD.

The Message looks something like that:

Loading model
Traceback (most recent call last):
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 193, in run_module_as_main
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\runpy.py", line 85, in run_code
File "D:\Temp\Real-ESRGAN\Temp\Cupscale 1.39.0f1\CupscaleData\bin\pth2ncnn\pth2ncnn.exe_main
.py~", line 440, in
File "D:\Temp\Real-ESRGAN\Temp\Cupscale 1.39.0f1\CupscaleData\bin\pth2ncnn\pth2ncnn.exe_main
.py~", line 361, in main
KeyError: 'model.0.weight'

from realsr-ncnn-vulkan.

WubTheGame avatar WubTheGame commented on May 21, 2024

Okay, well, I'd say post about it on Cupscale's repo. I doubt it's of use here.

from realsr-ncnn-vulkan.

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.