Traceback (most recent call last):
File "D:\sd-webui-aki-v4\modules\safe.py", line 83, in check_pt
with zipfile.ZipFile(filename) as z:
File "zipfile.py", line 1269, in __init__
File "zipfile.py", line 1336, in _RealGetContents
zipfile.BadZipFile: File is not a zip file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\sd-webui-aki-v4\modules\safe.py", line 137, in load_with_extra
check_pt(filename, extra_handler)
File "D:\sd-webui-aki-v4\modules\safe.py", line 104, in check_pt
unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings
*** Error loading script: Berry_Method.py
Traceback (most recent call last):
File "D:\sd-webui-aki-v4\modules\scripts.py", line 274, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\sd-webui-aki-v4\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\sd-webui-aki-v4\extensions\TemporalKit\scripts\Berry_Method.py", line 7, in
import scripts.stable_diffusion_processing as sdprocess
File "D:\sd-webui-aki-v4\extensions\TemporalKit\scripts\stable_diffusion_processing.py", line 15, in
import scripts.optical_flow_raft as raft
File "D:\sd-webui-aki-v4\extensions\TemporalKit\scripts\optical_flow_raft.py", line 23, in
model = raft_large(weights=Raft_Large_Weights.DEFAULT, progress=False).to(device)
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torchvision\models_utils.py", line 142, in wrapper
return fn(*args, **kwargs)
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torchvision\models_utils.py", line 228, in inner_wrapper
return builder(*args, **kwargs)
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torchvision\models\optical_flow\raft.py", line 852, in raft_large
return _raft(
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torchvision\models\optical_flow\raft.py", line 821, in _raft
model.load_state_dict(weights.get_state_dict(progress=progress))
File "D:\sd-webui-aki-v4\py310\lib\site-packages\torch\nn\modules\module.py", line 1994, in load_state_dict
raise TypeError("Expected state_dict to be dict-like, got {}.".format(type(state_dict)))
TypeError: Expected state_dict to be dict-like, got <class 'NoneType'>.
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
1、最后一行报错:_pickle序列化的必须是ASCII字符
2、不要只亮您的报错,至少还要贴出代码。答主们才好“有据”分析问题所在。如果引用数据都有,更容易找出问题症结。
2、依您报错提示,可能由您引用的数据引发,可以查看下您引发报错时的数据。可以用print() 或者input() 打印输出到终端屏幕。