GithubHelp home page GithubHelp logo

Model is not defined about practical-rife HOT 6 CLOSED

hzwer avatar hzwer commented on August 12, 2024
Model is not defined

from practical-rife.

Comments (6)

hzwer avatar hzwer commented on August 12, 2024

from train_log.RIFE_HDv3 import Model

Does train_log/RIFE_HDv3.py exist?

from practical-rife.

GlimmerFromDistrict1 avatar GlimmerFromDistrict1 commented on August 12, 2024

Yes, it's in

/Users/x/Practical-RIFE/train_log/RIFE_HDv3.py

from practical-rife.

hzwer avatar hzwer commented on August 12, 2024

You can test it at the python3 command line to figure out the issue.

from train_log.RIFE_HDv3 import Model
model = Model()

from practical-rife.

GlimmerFromDistrict1 avatar GlimmerFromDistrict1 commented on August 12, 2024

It turns out that I did not clone the project correctly upon the initial installation. inference_video.py now runs.

from practical-rife.

MonocleRB avatar MonocleRB commented on August 12, 2024

@GlimmerFromDistrict1 @hzwer
I'm having this same issue. Doesn't work when cloned by GitHub Desktop or by plain old Git, what did you do differently?

Please download our model from model list
Traceback (most recent call last):
File "/home/MonocleRB/git/Practical-RIFE/inference_video.py", line 96, in <module>
model = Model()
^^^^^
NameError: name 'Model' is not defined

from practical-rife.

MonocleRB avatar MonocleRB commented on August 12, 2024

When putting just the offending line (line 96) in its own .py file and running that, I got this:

\Traceback (most recent call last):
File "/home/MonocleRB/git/Practical-RIFE/test.py", line 1, in <module>
from train_log.RIFE_HDv3 import Model
File "/home/MonocleRB/git/Practical-RIFE/train_log/RIFE_HDv3.py", line 11, in <module>
from model.loss import *
File "/home/MonocleRB/git/Practical-RIFE/model/loss.py", line 5, in <module>
import torchvision.models as models
ModuleNotFoundError: No module named 'torchvision'

So the try/except statement was hiding the real errors.
Installing python-torchvision solved the issue.

from practical-rife.

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.