inference_video_enhance.py ends with error: "NameError: name 'Model' is not defined"
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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