babysor / babysor/MockingBird

"AssertionError" when starting web.py | 运行web.py时出现"AssertionError"错误

Open
#266 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
36.9k
Forks
5.2k
PR merge metrics
No merged PRs in 30d

Description

When I started "web.py", I met the error message ended of "AssertionError".:
我用python运行"web.py"时,遇到了以下问题,最后一行是“AssertionError”:

(mockingbird) C:\Users\yisheng_zhou\Downloads\MockingBird> python web.py
Loaded synthesizer models: 2
Loaded encoder "pretrained.pt" trained to step 1564501
Building Wave-RNN
Trainable Parameters: 4.481M
Loading model weights at vocoder\saved_models\pretrained\pretrained.pt
Building hifigan
Traceback (most recent call last):
File "C:\Users\yisheng_zhou\Downloads\MockingBird\web.py", line 6, in
app = webApp()
File "C:\Users\yisheng_zhou\Downloads\MockingBird\web\__init__.py", line 35, in webApp
gan_vocoder.load_model(Path("vocoder/saved_models/pretrained/g_hifigan.pt"))
File "C:\Users\yisheng_zhou\Downloads\MockingBird\vocoder\hifigan\inference.py", line 44, in load_model
state_dict_g = load_checkpoint(
File "C:\Users\yisheng_zhou\Downloads\MockingBird\vocoder\hifigan\inference.py", line 18, in load_checkpoint
assert os.path.isfile(filepath)
AssertionError

Was someone same to me? How to solve?
各位大神有遇到和我一样问题的吗?怎么解决的?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with web.py and web/__init__.py, then inspect vocoder/hifigan/inference.py, especially load_checkpoint and the asserted path vocoder/saved_models/pretrained/g_hifigan.pt. Reproduce the startup command and verify whether that file exists at the expected location; done means web.py starts without the AssertionError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.