數字人訓練數據修正和查看 不需要GPU也能運行的DH_live-加載自己訓練-

自己訓練模pth報錯

?le "D:\ai\dh_live\app.py", line 42, in demo_mini
? ? interface_mini(asset_path, wav_path, output_video_name)
? File "D:\ai\dh_live\demo_mini.py", line 21, in interface_mini
? ? renderModel_mini.loadModel("checkpoint/DINet_mini/epoch_40.pth")
? File "D:\ai\dh_live\talkingface\render_model_mini.py", line 24, in loadModel
? ? self.net.infer_model.load_state_dict(net_g_static)
? File "D:\CyberWin\devpro\Python311\Lib\site-packages\torch\nn\modules\module.py", line 2581, in load_state_dict
? ? raise RuntimeError(
RuntimeError: Error(s) in loading state_dict for DINet_mini:
? ? ? ? Missing key(s) in state_dict: "ref_in_conv.3.conv.weight", "ref_in_conv.3.conv.bias", "ref_in_conv.3.norm.weight", "ref_in_conv.3.norm.bias", "ref_in_conv.3.norm.running_mean", "ref_in_conv.3.norm.running_var", "appearance_conv.0.conv1.weight", "appearance_conv.0.conv1.bias", "appearance_conv.0.conv2.weight", "appearance_conv.0.conv2.bias", "appearance_conv.0.norm1.weight", "appearance_conv.0.norm1.bias", "appearance_conv.0.norm1.running_mean", "appearance_conv.0.norm1.running_var", "appearance_conv.0.norm2.weight", "appearance_conv.0.norm2.bias", "appearance_conv.0.norm2.running_mean", "appearance_conv.0.norm2.running_var", "out_conv.2.conv.weight", "out_conv.2.conv.bias", "out_conv.2.norm.weight", "out_conv.2.norm.bias", "out_conv.2.norm.running_mean", "out_conv.2.norm.running_var".
? ? ? ? Unexpected key(s) in state_dict: "appearance_conv_list.0.0.conv1.weight", "appearance_conv_list.0.0.conv1.bias", "appearance_conv_list.0.0.conv2.weight", "appearance_conv_list.0.0.conv2.bias", "appearance_conv_list.0.0.norm1.weight", "appearance_conv_list.0.0.norm1.bias", "appearance_conv_list.0.0.norm1.running_mean", "appearance_conv_list.0.0.norm1.running_var", "appearance_conv_list.0.0.norm1.num_batches_tracked", "appearance_conv_list.0.0.norm2.weight", "appearance_conv_list.0.0.norm2.bias", "appearance_conv_list.0.0.norm2.running_mean", "appearance_conv_list.0.0.norm2.running_var", "appearance_conv_list.0.0.norm2.num_batches_tracked", "appearance_conv_list.0.1.conv1.weight", "appearance_conv_list.0.1.conv1.bias", "appearance_conv_list.0.1.conv2.weight", "appearance_conv_list.0.1.conv2.bias", "appearance_conv_list.0.1.norm1.weight", "appearance_conv_list.0.1.norm1.bias", "appearance_conv_list.0.1.norm1.running_mean", "appearance_conv_list.0.1.norm1.running_var", "appearance_conv_list.0.

?


To create a public link, set `share=True` in `launch()`.
ffmpeg -i G:\C盤臨時緩存\Temp\gradio\93e68ec176966d4d582e464f62c252b2594238a1f21b8ae03549ab7588398fed\test.wav -ac 1 -ar 16000 -y video_data/tmp.wav
ffmpeg version N-118789-gb5be0c0aa9-20250316 Copyright (c) 2000-2025 the FFmpeg developersbuilt with gcc 14.2.0 (crosstool-NG 1.27.0.18_7458341)configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-libxml2 --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --enable-libdvdread --enable-libdvdnav --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-libzmq --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --disable-libvvenc --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-libs=-lgomp --extra-ldflags=-pthread --extra-ldexeflags= --cc=x86_64-w64-mingw32-gcc --cxx=x86_64-w64-mingw32-g++ --ar=x86_64-w64-mingw32-gcc-ar --ranlib=x86_64-w64-mingw32-gcc-ranlib --nm=x86_64-w64-mingw32-gcc-nm --extra-version=20250316libavutil      59. 59.100 / 59. 59.100libavcodec     61. 33.102 / 61. 33.102libavformat    61.  9.107 / 61.  9.107libavdevice    61.  4.100 / 61.  4.100libavfilter    10.  9.100 / 10.  9.100libswscale      8. 13.102 /  8. 13.102libswresample   5.  4.100 /  5.  4.100libpostproc    58.  4.100 / 58.  4.100
[aist#0:0/pcm_s16le @ 00000231d6f122c0] Guessed Channel Layout: mono
Input #0, wav, from 'G:\C盤臨時緩存\Temp\gradio\93e68ec176966d4d582e464f62c252b2594238a1f21b8ae03549ab7588398fed\test.wav':Metadata:comment         : vid:v0200fg10000c7e0kdbc77u98d4v9c9gencoder         : Lavf59.28.100Duration: 00:00:07.62, bitrate: 256 kb/sStream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/s
Stream mapping:Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'video_data/tmp.wav':Metadata:ICMT            : vid:v0200fg10000c7e0kdbc77u98d4v9c9gISFT            : Lavf61.9.107Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, mono, s16, 256 kb/sMetadata:encoder         : Lavc61.33.102 pcm_s16le
[out#0/wav @ 00000231d6e5cc40] video:0KiB audio:238KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: 0.050879%
size=     238KiB time=00:00:07.61 bitrate= 256.1kbits/s speed=22.7x
Traceback (most recent call last):File "D:\CyberWin\devpro\Python311\Lib\site-packages\gradio\queueing.py", line 625, in process_eventsresponse = await route_utils.call_process_api(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\gradio\route_utils.py", line 322, in call_process_apioutput = await app.get_blocks().process_api(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\gradio\blocks.py", line 2103, in process_apiresult = await self.call_function(^^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\gradio\blocks.py", line 1650, in call_functionprediction = await anyio.to_thread.run_sync(  # type: ignore^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\anyio\to_thread.py", line 56, in run_syncreturn await get_async_backend().run_sync_in_worker_thread(^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\anyio\_backends\_asyncio.py", line 2470, in run_sync_in_worker_threadreturn await future^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\anyio\_backends\_asyncio.py", line 967, in runresult = context.run(func, *args)^^^^^^^^^^^^^^^^^^^^^^^^File "D:\CyberWin\devpro\Python311\Lib\site-packages\gradio\utils.py", line 890, in wrapperresponse = f(*args, **kwargs)^^^^^^^^^^^^^^^^^^File "D:\ai\dh_live\app.py", line 42, in demo_miniinterface_mini(asset_path, wav_path, output_video_name)File "D:\ai\dh_live\demo_mini.py", line 19, in interface_minifrom talkingface.render_model_mini import RenderModel_MiniFile "D:\ai\dh_live\talkingface\render_model_mini.py", line 28

?

?

?File "D:\ai\dh_live\app.py", line 42, in demo_mini
? ? interface_mini(asset_path, wav_path, output_video_name)
? File "D:\ai\dh_live\demo_mini.py", line 21, in interface_mini
? ? renderModel_mini.loadModel("checkpoint/DINet_mini/epoch_40.pth")
? File "D:\ai\dh_live\talkingface\render_model_mini.py", line 57, in loadModel
RuntimeError: dictionary changed size during iteration

? File "D:\ai\dh_live\app.py", line 42, in demo_mini
? ? interface_mini(asset_path, wav_path, output_video_name)
? File "D:\ai\dh_live\demo_mini.py", line 21, in interface_mini
? ? renderModel_mini.loadModel("checkpoint/DINet_mini/epoch_40.pth")
? File "D:\ai\dh_live\talkingface\render_model_mini.py", line 61, in loadModel
NameError: name 'net_g_static' is not defined

e "D:\ai\dh_live\talkingface\render_model_mini.py", line 62, in loadModelFile "D:\CyberWin\devpro\Python311\Lib\site-packages\torch\nn\modules\module.py", line 2581, in load_state_dictraise RuntimeError(
RuntimeError: Error(s) in loading state_dict for DINet_mini:size mismatch for source_in_conv.0.conv.weight: copying a param with shape torch.Size([32, 6, 7, 7]) from checkpoint, the shape in current model is torch.Size([12, 3, 3, 3]).

FileNotFoundError: [Errno 2] No such file or directory: 'assets\\combined_data.json.gz'
?

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/web/74457.shtml
繁體地址,請注明出處:http://hk.pswp.cn/web/74457.shtml
英文地址,請注明出處:http://en.pswp.cn/web/74457.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

基姆拉爾森計算公式

基姆拉爾森計算公式(Zellers Congruence 的變體)是一種快速根據公歷日期計算星期幾的數學公式。其核心思想是通過對年月日的數值進行特定變換和取模運算,直接得到星期幾的結果。 公式定義 對于日期 年-月-日,公式如下&#xff1a…

數字孿生在智慧城市中的前端呈現與 UI 設計思路

一、數字孿生技術在智慧城市中的應用與前端呈現 數字孿生技術通過創建城市的虛擬副本,實現了對城市運行狀態的實時監控、分析與預測。在智慧城市中,數字孿生技術的應用包括交通流量監測、環境質量分析、基礎設施管理等。其前端呈現主要依賴于Web3D技術、…

基于CNN-LSTM的深度Q網絡(Deep Q-Network,DQN)求解移動機器人路徑規劃,MATLAB代碼

一、深度Q網絡(Deep Q-Network,DQN)介紹 1、背景與動機 深度Q網絡(DQN)是深度強化學習領域的里程碑算法,由DeepMind于2013年提出。它首次在 Atari 2600 游戲上實現了超越人類的表現,解決了傳統…

結構型設計模式。持續更新

結構型 - 外觀 提供了一個統一的接口,用來訪問子系統中的一群接口,從而讓子系統更容易使用。 public class SubSystem {public void turnOnTV() {System.out.println("turnOnTV()");}public void setCD(String cd) {System.out.println(&quo…

從零構建大語言模型全棧開發指南:第五部分:行業應用與前沿探索-5.1.2行業落地挑戰:算力成本與數據隱私解決方案

?? 點擊關注不迷路 ?? 點擊關注不迷路 ?? 點擊關注不迷路 文章大綱 從零構建大語言模型全棧開發指南-第五部分:行業應用與前沿探索5.1.2 行業落地挑戰:算力成本與數據隱私解決方案1. 算力成本挑戰與優化策略1.1 算力成本的核心問題1.2 算力優化技術方案2. 數據隱私挑戰…

量子計算與人工智能融合的未來趨勢

最近研學過程中發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊鏈接跳轉到網站人工智能及編程語言學習教程。讀者們可以通過里面的文章詳細了解一下人工智能及其編程等教程和學習方法。 在當今科技飛速發展…

六種光耦綜合對比——《器件手冊--光耦》

目錄 十二、光耦 簡述 基本結構 工作原理 主要特點 應用領域 優勢與局限性 選擇光耦時需要考慮的因素 詳盡闡述 1 柵極驅動光耦 基本結構 工作原理 主要特點 應用領域 選擇柵極驅動光耦時需要考慮的因素 典型產品示例 總結 2 邏輯輸出光耦 基本結構 工作原理 主要特點 應用…

【藍橋杯嵌入式——學習筆記一】2016年第七屆省賽真題重難點解析記錄,閉坑指南(文末附完整代碼)

在讀題過程中發現本次使用的是串口2,需要配置串口2。 但在查看產品手冊時發現PA14同時也是SWCLK。 所以在使用串口2時需要拔下跳線帽去連接CH340。 可能是用到串口2的緣故,在燒錄時發現報了一個錯誤。這時我們要想燒錄得按著復位鍵去點擊燒錄&#xff0c…

三、GPIO

一、GPIO簡介 GPIO(General Purpose Input Output)通用輸入輸出口GPIO引腳電平:0V(低電平)~3.3V(高電平),部分引腳可容忍5V 容忍5V,即部分引腳輸入5V的電壓,…

Java實戰報錯

哪錯了 Preview 在這段Java代碼中,map.put("Cc", 20); 這一行的鍵 "Cc" 被標記為錯誤。這可能是由于以下幾種原因: 鍵值類型不匹配:雖然在你的代碼中沒有顯示出來,但確保 HashMap 的鍵是 String 類型&#xf…

25大唐杯賽道一本科B組知識點大綱(下)

5G/6G網絡技術知識點(10%) 工程概論及通信工程項目實踐(20%) 5G垂直行業應用知識點(20%) ???為重點知識,盡量要過一遍哦 大唐杯賽道一國一備賽思路 大唐杯國一省賽回憶錄--有付出就會有收…

docker的文件系統Overlay2

OverlayFS(Overlay2)文件系統深度解析 Overlay2 是 Docker 默認使用的聯合文件系統(Union Filesystem),用于管理容器鏡像的分層存儲和容器運行時文件系統的合并。它基于 Linux 內核的 OverlayFS 技術,是早…

WebRTC技術簡介及應用場景

寫在前面 本文是參考稀土掘金的文章,整理得出,版權歸原作者所有! 參考鏈接:https://juejin.cn/book/7168418382318927880/section/7171376753263247396 WebRTC(Web Real-Time Communication) 是一項開源技術,允許瀏覽器和移動應用直接進行…

Windows 圖形顯示驅動開發-WDDM 2.1 功能(四)

驅動程序版本控制 圖形適配器或芯片集的驅動程序 DLL 和 SYS 文件必須具有正確格式的文件版本。 驅動程序信息文件 (.inf)、內核模式驅動程序 (.sys) 和用戶模式驅動程序 (.dll) 文件的版本信息必須一致。 此外,.inf 的 [SignatureAttributes] 部分中標識為 PETru…

什么是 StarRocks?核心優勢與適用場景解析

在數據量持續爆發的時代,企業對實時分析的需求日益迫切。例如,電商大促期間的交易監控、廣告投放效果的即時反饋等場景,均要求毫秒級的響應速度。然而,傳統工具如 Hadoop、Hive 等存在明顯短板:復雜查詢性能不足、資源…

Java基礎 4.3

1.對象機制練習 public class Object03 {public static void main(String[] args) {Person a new Person();a.age 10;a.name "小明";Person b;b a;System.out.println(b.name);//小明b.age 200;b null;System.out.println(a.age);//200System.out.println(b.a…

視頻設備軌跡回放平臺EasyCVR綜合智能化,搭建運動場體育賽事直播方案

一、背景 隨著5G技術的發展,體育賽事直播迎來了新的高峰。無論是NBA、西甲、英超、德甲、意甲、中超還是CBA等熱門賽事,都是值得記錄和回放的精彩瞬間。對于體育迷來說,選擇觀看的平臺眾多,但是作為運營者,搭建一套體…

搬磚--貪心+排序的背包

a在上面b在下面->a.v-M-b.m>b.v-M-a.m->剩余率大 所以我先遍歷a&#xff0c;讓a在上面 這就是要考慮貪心排序的01背包 因為它有放的限制條件 #include<bits/stdc.h> using namespace std; #define N 100011 typedef long long ll; typedef pair<ll,int>…

《2024年全球DDoS攻擊態勢分析》

從攻擊態勢來看&#xff0c;2024年DDoS攻擊頻次繼續呈增長趨勢&#xff0c;2024年同步增加1.3倍&#xff1b;超大規模攻擊激增&#xff0c;超800Gbps同比增長3.1倍&#xff0c;累計高達771次&#xff0c;且互聯網史上最大帶寬和最大包速率攻擊均被刷新&#xff1b;瞬時泛洪攻擊…

數據分析參考架構詳解

1.數倉方法論 2. 數倉建模參考架構 3.大數據參考架構 4.數據分析參考架構