質問編集履歴

1

エラーの不足部分を補いました。

2022/09/19 23:49

投稿

giraffe01
giraffe01

スコア1

test CHANGED
File without changes
test CHANGED
@@ -26,6 +26,34 @@
26
26
  5 webui.webui()
27
27
 
28
28
  4 frames
29
+ /content/stable-diffusion-webui/webui.py in <module>
30
+ 65 modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
31
+ 66
32
+ ---> 67 shared.sd_model = modules.sd_models.load_model()
33
+ 68 shared.opts.onchange("sd_model_checkpoint", wrap_queued_call(lambda: modules.sd_models.reload_model_weights(shared.sd_model)))
34
+ 69
35
+
36
+ /content/stable-diffusion-webui/modules/sd_models.py in load_model()
37
+ 116 sd_config = OmegaConf.load(shared.cmd_opts.config)
38
+ 117 sd_model = instantiate_from_config(sd_config.model)
39
+ --> 118 load_model_weights(sd_model, checkpoint_info.filename, checkpoint_info.hash)
40
+ 119
41
+ 120 if shared.cmd_opts.lowvram or shared.cmd_opts.medvram:
42
+
43
+ /content/stable-diffusion-webui/modules/sd_models.py in load_model_weights(model, checkpoint_file, sd_model_hash)
44
+ 93 print(f"Loading weights [{sd_model_hash}] from {checkpoint_file}")
45
+ 94
46
+ ---> 95 pl_sd = torch.load(checkpoint_file, map_location="cpu")
47
+ 96 if "global_step" in pl_sd:
48
+ 97 print(f"Global Step: {pl_sd['global_step']}")
49
+
50
+ /usr/local/lib/python3.7/dist-packages/torch/serialization.py in load(f, map_location, pickle_module, **pickle_load_args)
51
+ 711 return torch.jit.load(opened_file)
52
+ 712 return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
53
+ --> 713 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
54
+ 714
55
+ 715
56
+
29
57
  /usr/local/lib/python3.7/dist-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
30
58
  918 "functionality.")
31
59
  919