waityousea / xuniren

MIT License
551 stars 159 forks source link

python app.py 执行卡住 #31

Open lldhliu opened 8 months ago

lldhliu commented 8 months ago

(xuniren) E:\mywork\xuniren>python app.py [INFO] loading ASR model ./models/wav2vec2-large-xlsr-53-esperanto... E:\software\anaconda3\envs\xuniren\lib\site-packages\transformers\configuration_utils.py:380: UserWarning: Passing gradient_checkpointing to a config initialization is deprecated and will be removed in v5 Transformers. Using model.gradient_checkpointing_enable() instead, or if you are using the Trainer API, pass gradient_checkpointing=True in your TrainingArguments. warnings.warn( Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize [INFO] Trainer: ngp | 2023-11-02_14-12-43 | cuda | fp16 | data/video [INFO] #parameters: 4231701 [INFO] Loading data/pretrained/ngp_kf.pth ... [INFO] loaded model. [INFO] load at epoch 58, global step 203464 [WARN] Failed to load optimizer. [INFO] loaded scheduler. [INFO] loaded scaler.

执行到这里一直没反应了

showkeyjar commented 8 months ago

+1

luhairong11 commented 6 months ago

我的只到了下面这里一直卡着不动 warnings.warn( Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize Ignored unknown kwarg option normalize

disunlike commented 5 months ago

+1

aoyang-hd commented 5 months ago

需要自己写个客户端 去请求

from websocket import create_connection
def client_handle():
ws = create_connection('ws://127.0.0.1:8800/dighuman')
while True:
if ws.connected:
ws.send('你好,我叫王尼玛,我来自中国,21岁了')
result = ws.recv()
print(f"client received:{result}")
# ws.close()
if name == "main":
client_handle()