Coder Social home page Coder Social logo

Error: unknown torch class about waifu2x HOT 5 CLOSED

nagadomi avatar nagadomi commented on July 3, 2024
Error: unknown torch class

from waifu2x.

Comments (5)

nagadomi avatar nagadomi commented on July 3, 2024

I guess the model file is broken.
Could you check the file size and md5sum?

% ls -la models/anime_style_art_rgb/*.t7
-rw-rw-r-- 1 nagadomi nagadomi 8596071 Sep  7 15:14 models/anime_style_art_rgb/noise1_model.t7
-rw-rw-r-- 1 nagadomi nagadomi 8605917 Sep  7 15:14 models/anime_style_art_rgb/noise2_model.t7
-rw-rw-r-- 1 nagadomi nagadomi 8596827 Sep  7 15:14 models/anime_style_art_rgb/scale2.0x_model.t7

% md5sum models/anime_style_art_rgb/*.t7
ab1b049fcf6777b46c666549213eea2c  models/anime_style_art_rgb/noise1_model.t7
d6cf9952e5953561ca028fca9e8f336e  models/anime_style_art_rgb/noise2_model.t7
bb4666b71ef8888bbdd215c3dbe67160  models/anime_style_art_rgb/scale2.0x_model.t7

from waifu2x.

DerKleineGauss avatar DerKleineGauss commented on July 3, 2024

% ls -la models/anime_style_art_rgb/.t7
-rw-r--r-- 1 user user 8597701 Okt 27 20:54 models/anime_style_art_rgb/noise1_model.t7
-rw-r--r-- 1 user user 8607547 Okt 27 20:54 models/anime_style_art_rgb/noise2_model.t7
-rw-r--r-- 1 user user 8598457 Okt 27 20:54 models/anime_style_art_rgb/scale2.0x_model.t7
% md5sum models/anime_style_art_rgb/
.t7
321eb69525b79d44f797630bb2ff393d models/anime_style_art_rgb/noise1_model.t7
465a539a2a9839f3c8663a622fdc2cd3 models/anime_style_art_rgb/noise2_model.t7
f5e45f288d6938d4c7eff4e7aaff0421 models/anime_style_art_rgb/scale2.0x_model.t7

from waifu2x.

nagadomi avatar nagadomi commented on July 3, 2024

Maybe downloads are incomplete. (or newline char issue?)
Try

git checkout master
git fetch origin
git checkout .
git pull

And

th waifu2x.lua

Or use the archived source code: https://github.com/nagadomi/waifu2x/archive/v0.9.tar.gz

from waifu2x.

DerKleineGauss avatar DerKleineGauss commented on July 3, 2024

I could fix it. Somehow - and I don't know how - several files in the repo were modified (I list below). git reset --hard helped.

modified:   .gitignore
modified:   LICENSE
modified:   NOTICE
modified:   README.md
modified:   appendix/purge_cache.lua
modified:   appendix/purge_cache.sh
modified:   appendix/run-web.sh
modified:   appendix/waifu2x.nginx.conf
modified:   appendix/waifu2x.upstart.conf
modified:   assets/index.html
modified:   assets/index.ja.html
modified:   assets/index.ru.html
modified:   cleanup_model.lua
modified:   convert_data.lua
modified:   cudnn2cunn.lua
modified:   export_model.lua
modified:   images/gen.sh
modified:   lib/LeakyReLU.lua
modified:   lib/image_loader.lua
modified:   lib/iproc.lua
modified:   lib/minibatch_adam.lua
modified:   lib/pairwise_transform.lua
modified:   lib/portable.lua
modified:   lib/reconstruct.lua
modified:   lib/settings.lua
modified:   lib/srcnn.lua
modified:   models/anime_style_art/noise1_model.t7
modified:   models/anime_style_art/noise2_model.t7
modified:   models/anime_style_art/scale2.0x_model.t7
modified:   models/anime_style_art_rgb/noise1_model.t7
modified:   models/anime_style_art_rgb/noise2_model.t7
modified:   models/anime_style_art_rgb/scale2.0x_model.t7
modified:   models/ukbench/scale2.0x_model.t7
modified:   train.lua
modified:   train.sh
modified:   waifu2x.lua
modified:   web.lua

from waifu2x.

nagadomi avatar nagadomi commented on July 3, 2024

That was good.
I'm not really an expert on git. I am guessing that issue is caused by your git global settings for line ending.
Thanks.

from waifu2x.

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.