|
发表于 2024-4-15 21:34:35
|
显示全部楼层
大神求助,我这问题请问怎么解决
Error occurred when executing CheckpointLoaderSimple:
Allocation on device 0 would exceed allowed memory. (out of memory)
Currently allocated : 3.12 GiB
Requested : 28.12 MiB
Device limit : 12.00 GiB
Free (according to CUDA): 7.85 GiB
PyTorch limit (set by user-supplied memory fraction)
: 17179869184.00 GiB
File "E:\AI\comfyUI\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\nodes.py", line 541, in load_checkpoint
out = comfy.sd.load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, embedding_directory=folder_paths.get_folder_paths("embeddings"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\comfy\sd.py", line 522, in load_checkpoint_guess_config
model = model_config.get_model(sd, "model.diffusion_model.", device=inital_load_device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\comfy\supported_models.py", line 188, in get_model
out = model_base.SDXL(self, model_type=self.model_type(state_dict, prefix), device=device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\comfy\model_base.py", line 313, in __init__
super().__init__(model_config, model_type, device=device)
File "E:\AI\comfyUI\ComfyUI\comfy\model_base.py", line 62, in __init__
self.diffusion_model = unet_model(**unet_config, device=device, operations=operations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\comfy\ldm\modules\diffusionmodules\openaimodel.py", line 742, in __init__
get_resblock(
File "E:\AI\comfyUI\ComfyUI\comfy\ldm\modules\diffusionmodules\openaimodel.py", line 598, in get_resblock
return ResBlock(
^^^^^^^^^
File "E:\AI\comfyUI\ComfyUI\comfy\ldm\modules\diffusionmodules\openaimodel.py", line 210, in __init__
operations.conv_nd(dims, self.out_channels, self.out_channels, kernel_size, padding=padding, dtype=dtype, device=device)
File "E:\AI\comfyUI\ComfyUI\comfy\ops.py", line 139, in conv_nd
return s.Conv2d(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\comfyUI\python_embeded\Lib\site-packages\torch\nn\modules\conv.py", line 447, in __init__
super().__init__(
File "E:\AI\comfyUI\python_embeded\Lib\site-packages\torch\nn\modules\conv.py", line 134, in __init__
self.weight = Parameter(torch.empty(
^^^^^^^^^^^^
Close |
|