hzwer / hzwer/Practical-RIFE

inference_video_enhance.py ends with error: "NameError: name 'Model' is not defined"

Open
#82 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
131
PR merge metrics
No merged PRs in 30d

Description

I'm trying to encance the video using script "python3 inference_video_enhance.py --video=input.mp4", as described in the example, and I get the error: "NameError: name 'Model' is not defined". I downloaded the SAFA model from Google drive and placed it in folder "train_log_SAFA". "python3 inference_video_enhance.py --video=input.mp4 --model train_log_SAFA" gives the same error. What am I doing wrong?

Console logs:
Please download our model from model list
Traceback (most recent call last):
File "/root/1data/apps/local/Practical-RIFE/inference_video_enhance.py", line 83, in
model = Model()
^^^^^
NameError: name 'Model' is not defined

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing python3 inference_video_enhance.py --video=input.mp4 and inspect inference_video_enhance.py around line 83, where Model() is called. Check how the downloaded SAFA model in train_log_SAFA is expected to be loaded and why the script prints “Please download our model from model list”; done means the command proceeds without the NameError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.