解決問題:OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eof
背景
載入模型或者執行程式碼時候出現了
File “h5py/_objects.pyx”, line 54, in h5py._objects.with_phil.wrapper
File “h5py/_objects.pyx”, line 55, in h5py._objects.with_phil.wrapper
File “h5py/h5f.pyx”, line 88, in h5py.h5f.open
OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eof = 152662144)
搜尋了一下github 中的解決方案:here。 裡面大部分人覺得是權重檔案沒有成功下載, 需要刪除重新下載。
解決方案
找到下載的資料夾,將下載未完成的.h5檔案刪除,重新下載, 注意這次中途不要斷,保證下載成功。
結果
問題解決,成功執行了。
相關文章
- cat > file << EOF 與 cat > file << -
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- 呼叫torchtext報錯OSError: libtorch_cpu.so: cannot open shared object file: No such file or directoryErrorObject
- 解決The jar file has no source attachment問題JAR
- Hugging Face 無法連線問題 OSError: We couldn‘t connect to ‘https://huggingface.co‘ to load this file 解決方案Hugging FaceErrorHTTP
- mac下/usr/local/bin No such file or directory問題解決Mac
- Docker啟動故障問題 no such file or directory解決方法Docker
- libcudart.so.8.0: cannot open shared object file解決方案DartObject
- inplace-abn 報錯解決: ImportError: libcudart.so.9.0: cannot open shared object file: No such file or dirImportErrorDartObject
- 解決 ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE 問題FTPHTTP
- conda環境下ImportError: libmkl_intel_lp64.so.1: cannot open shared object file問題解決ImportErrorIBMIntelObject
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- Authentication failure 以及xxx is not in the sudoers file 問題的解決辦法AI
- Can't open file: (errno: 24)
- WPF open image and print as pdf file
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- python 讀取 csv 檔案報錯:file = builtins.open (filename, mode, buffering),OSError: [Errno 22] Invalid argumentPythonUIError
- MySQL 8.0.12 --secure-file-priv 資料匯出問題解決MySql
- ftp_rawlist: Unable to create temporary file.FTP
- open_basedir() restrictijon in effect. FIle()REST
- Linux open file與 fs-maxLinux
- 處理OGG-02198 Incompatible record (logical EOF) in trail fileAI
- 完美解決xhost +報錯: unable to open display
- "Visual Studio Code is unable to watch for file changes in this large workspace"
- input file相容性問題
- [20181214]open file using O_DIRECT.txt
- QT 出現 warning: unterminated #pragma pack (push, ...) at end of file 問題的解決方案QT
- gitbook no such file or directory 怎麼解決Git
- Linux安裝mysql出現ERROR! The server quit without updating PID file問題解決LinuxMySqlErrorServerUI
- Nginx unexpected end of file 配置證書遇到問題,如何解決?Nginx
- no input file specified 三種解決方法
- linux解決“XXX is not in the sudoers file”錯誤Linux
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- Ubuntu 解決 Too many open files 問題Ubuntu
- macOS 無法sudo建立資料夾返回Read-only file system問題解決Mac
- 在 apache 中重寫規則不生效的問題 [No input file specified.] 解決Apache
- 解決GD32新建工程時提示:cannot open source input file “RTE_Components.h“
- python libclntsh.so.12.1: cannot open shared object filePythonObject