mirror of
https://github.com/TMElyralab/MuseTalk.git
synced 2026-02-04 09:29:20 +08:00
Update app.py
现象:PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'temp.mp4' 系统:Windows11 修改点:app.py,line 267增加一行代码 reader.close()
This commit is contained in:
2
app.py
2
app.py
@@ -264,7 +264,7 @@ def inference(audio_path,video_path,bbox_shift,progress=gr.Progress(track_tqdm=T
|
||||
# 读取视频
|
||||
reader = imageio.get_reader(input_video)
|
||||
fps = reader.get_meta_data()['fps'] # 获取原视频的帧率
|
||||
|
||||
reader.close() # 否则在win11上会报错:PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: 'temp.mp4'
|
||||
# 将帧存储在列表中
|
||||
frames = images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user