Guest User

Untitled

a guest
Nov 30th, 2025
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.76 KB | None | 0 0
  1. (venv) C:\ComfyUI>python main.py --listen 0.0.0.0 --port 9999 --use-sage-attention --auto-launch
  2. [START] Security scan
  3. [DONE] Security scan
  4. ## ComfyUI-Manager: installing dependencies done.
  5. ** ComfyUI startup time: 2025-11-30 22:00:33.314
  6. ** Platform: Windows
  7. ** Python version: 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:09:13) [MSC v.1944 64 bit (AMD64)]
  8. ** Python executable: C:\ComfyUI\venv\Scripts\python.exe
  9. ** ComfyUI Path: C:\ComfyUI
  10. ** ComfyUI Base Folder Path: C:\ComfyUI
  11. ** User directory: C:\ComfyUI\user
  12. ** ComfyUI-Manager config path: C:\ComfyUI\user\default\ComfyUI-Manager\config.ini
  13. ** Log path: C:\ComfyUI\user\comfyui.log
  14.  
  15. Prestartup times for custom nodes:
  16. 4.9 seconds: C:\ComfyUI\custom_nodes\ComfyUI-Manager
  17.  
  18. Checkpoint files will always be loaded safely.
  19. Total VRAM 8187 MB, total RAM 15834 MB
  20. pytorch version: 2.9.1+cu130
  21. WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
  22. PyTorch 2.9.0+cu128 with CUDA 1208 (you have 2.9.1+cu130)
  23. Python 3.10.11 (you have 3.13.9)
  24. Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  25. Memory-efficient attention, SwiGLU, sparse and more won't be available.
  26. Traceback (most recent call last):
  27. File "C:\ComfyUI\venv\Lib\site-packages\torch\_ops.py", line 1488, in load_library
  28. ctypes.CDLL(path)
  29. ~~~~~~~~~~~^^^^^^
  30. File "C:\Users\studi\AppData\Local\Programs\Python\Python313\Lib\ctypes\__init__.py", line 390, in __init__
  31. self._handle = _dlopen(self._name, mode)
  32. ~~~~~~~^^^^^^^^^^^^^^^^^^
  33. FileNotFoundError: Could not find module 'C:\ComfyUI\venv\Lib\site-packages\xformers\_C.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
  34.  
  35. The above exception was the direct cause of the following exception:
  36.  
  37. Traceback (most recent call last):
  38. File "C:\ComfyUI\venv\Lib\site-packages\xformers\_cpp_lib.py", line 132, in _register_extensions
  39. torch.ops.load_library(ext_specs.origin)
  40. ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  41. File "C:\ComfyUI\venv\Lib\site-packages\torch\_ops.py", line 1490, in load_library
  42. raise OSError(f"Could not load this library: {path}") from e
  43. OSError: Could not load this library: C:\ComfyUI\venv\Lib\site-packages\xformers\_C.pyd
  44.  
  45. The above exception was the direct cause of the following exception:
  46.  
  47. Traceback (most recent call last):
  48. File "C:\ComfyUI\venv\Lib\site-packages\xformers\_cpp_lib.py", line 142, in <module>
  49. _build_metadata = _register_extensions()
  50. File "C:\ComfyUI\venv\Lib\site-packages\xformers\_cpp_lib.py", line 134, in _register_extensions
  51. raise xFormersInvalidLibException(build_metadata) from exc
  52. xformers._cpp_lib.xFormersInvalidLibException: xFormers can't load C++/CUDA extensions. xFormers was built for:
  53. PyTorch 2.9.0+cu128 with CUDA 1208 (you have 2.9.1+cu130)
  54. Python 3.10.11 (you have 3.13.9)
  55. Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  56. Memory-efficient attention, SwiGLU, sparse and more won't be available.
  57. Set vram state to: NORMAL_VRAM
  58. Device: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync
  59. Using async weight offloading with 2 streams
  60. Enabled pinned memory 7125.0
  61. working around nvidia conv3d memory bug.
  62. Using sage attention
  63. Python version: 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:09:13) [MSC v.1944 64 bit (AMD64)]
  64. ComfyUI version: 0.3.75
  65. ________________________________________________________________________
  66. WARNING WARNING WARNING WARNING WARNING
  67.  
  68. Installed frontend version 1.30.6 is lower than the recommended version 1.32.9.
  69.  
  70. Please install the updated requirements.txt file by running:
  71. C:\ComfyUI\venv\Scripts\python.exe -m pip install -r C:\ComfyUI\requirements.txt
  72. If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
  73.  
  74. This error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.
  75. ________________________________________________________________________
  76. [Prompt Server] web root: C:\ComfyUI\venv\Lib\site-packages\comfyui_frontend_package\static
  77. Total VRAM 8187 MB, total RAM 15834 MB
  78. pytorch version: 2.9.1+cu130
  79. Set vram state to: NORMAL_VRAM
  80. Device: cuda:0 NVIDIA GeForce RTX 4060 : cudaMallocAsync
  81. Using async weight offloading with 2 streams
  82. Enabled pinned memory 7125.0
  83. ### Loading: ComfyUI-Manager (V3.37.2)
  84. [ComfyUI-Manager] network_mode: public
  85. ### ComfyUI Version: v0.3.75-30-gf8b981ae | Released on '2025-11-30'
  86. [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
  87. [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
  88. [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
  89. [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
  90. [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
  91. WanVideoWrapper WARNING: FantasyPortrait nodes not available due to error in importing them: No module named 'onnx'
  92.  
  93. Import times for custom nodes:
  94. 0.0 seconds: C:\ComfyUI\custom_nodes\websocket_image_save.py
  95. 0.3 seconds: C:\ComfyUI\custom_nodes\ComfyUI-KJNodes
  96. 0.6 seconds: C:\ComfyUI\custom_nodes\ComfyUI-Manager
  97. 3.6 seconds: C:\ComfyUI\custom_nodes\ComfyUI-WanVideoWrapper
  98.  
  99. FETCH ComfyRegistry Data: 5/109
  100. Context impl SQLiteImpl.
  101. Will assume non-transactional DDL.
  102. No target revision found.
  103. ________________________________________________________________________
  104. WARNING WARNING WARNING WARNING WARNING
  105.  
  106. Installed frontend version 1.30.6 is lower than the recommended version 1.32.9.
  107.  
  108. Please install the updated requirements.txt file by running:
  109. C:\ComfyUI\venv\Scripts\python.exe -m pip install -r C:\ComfyUI\requirements.txt
  110. If you are on the portable package you can run: update\update_comfyui.bat to solve this problem.
  111.  
  112. This error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.
  113. ________________________________________________________________________
  114. Starting server
  115.  
  116. To see the GUI go to: http://0.0.0.0:9999
  117. [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
  118. [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
  119. [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
  120. [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.
  121. FETCH ComfyRegistry Data: 10/109
  122. FETCH ComfyRegistry Data: 15/109
  123. FETCH ComfyRegistry Data: 20/109
  124. FETCH ComfyRegistry Data: 25/109
  125. FETCH ComfyRegistry Data: 30/109
  126. FETCH ComfyRegistry Data: 35/109
  127. FETCH ComfyRegistry Data: 40/109
  128. got prompt
  129. Using pytorch attention in VAE
  130. Using pytorch attention in VAE
  131. FETCH ComfyRegistry Data: 45/109
  132. VAE load device: cuda:0, offload device: cpu, dtype: torch.bfloat16
  133. Using scaled fp8: fp8 matrix mult: False, scale input: False
  134. CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
  135. FETCH ComfyRegistry Data: 50/109
  136. FETCH ComfyRegistry Data: 55/109
  137. FETCH ComfyRegistry Data: 60/109
  138. FETCH ComfyRegistry Data: 65/109
  139. Requested to load ZImageTEModel_
  140. FETCH ComfyRegistry Data: 70/109
  141. loaded completely; 5677.80 MB usable, 4207.25 MB loaded, full load: True
  142. Found quantization metadata (version 1.0)
  143. Detected mixed precision quantization: 179 layers quantized
  144. Using mixed precision operations: 179 quantized layers
  145. model weight dtype torch.float8_e4m3fn, manual cast: torch.bfloat16
  146. model_type FLOW
  147. unet missing: ['norm_final.weight']
  148. TorchCompileModelAdvanced: Compile key list:
  149. - diffusion_model.layers.0
  150. - diffusion_model.layers.1
  151. - diffusion_model.layers.2
  152. - diffusion_model.layers.3
  153. - diffusion_model.layers.4
  154. - diffusion_model.layers.5
  155. - diffusion_model.layers.6
  156. - diffusion_model.layers.7
  157. - diffusion_model.layers.8
  158. - diffusion_model.layers.9
  159. - diffusion_model.layers.10
  160. - diffusion_model.layers.11
  161. - diffusion_model.layers.12
  162. - diffusion_model.layers.13
  163. - diffusion_model.layers.14
  164. - diffusion_model.layers.15
  165. - diffusion_model.layers.16
  166. - diffusion_model.layers.17
  167. - diffusion_model.layers.18
  168. - diffusion_model.layers.19
  169. - diffusion_model.layers.20
  170. - diffusion_model.layers.21
  171. - diffusion_model.layers.22
  172. - diffusion_model.layers.23
  173. - diffusion_model.layers.24
  174. - diffusion_model.layers.25
  175. - diffusion_model.layers.26
  176. - diffusion_model.layers.27
  177. - diffusion_model.layers.28
  178. - diffusion_model.layers.29
  179. Requested to load Lumina2
  180. FETCH ComfyRegistry Data: 75/109
  181. FETCH ComfyRegistry Data: 80/109
  182. FETCH ComfyRegistry Data: 85/109
  183. FETCH ComfyRegistry Data: 90/109
  184. FETCH ComfyRegistry Data: 95/109
  185. FETCH ComfyRegistry Data: 100/109
  186. FETCH ComfyRegistry Data: 105/109
  187. FETCH ComfyRegistry Data [DONE]
  188. [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
  189. FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]
  190. [ComfyUI-Manager] All startup tasks have been completed.
  191. loaded partially; 5635.67 MB usable, 5523.17 MB loaded, 1044.61 MB offloaded, 112.50 MB buffer reserved, lowvram patches: 0
  192. 0%| | 0/4 [00:00<?, ?it/s]QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  193. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  194. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  195. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  196. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  197. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  198. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  199. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  200. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  201. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  202. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  203. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  204. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  205. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  206. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  207. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  208. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  209. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  210. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  211. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  212. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  213. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  214. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  215. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  216. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  217. W1130 22:03:05.781000 1092 venv\Lib\site-packages\torch\_inductor\utils.py:1613] [0/2] Not enough SMs to use max_autotune_gemm mode
  218. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  219. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  220. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  221. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  222. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  223. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  224. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  225. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  226. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  227. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  228. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  229. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  230. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  231. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  232. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  233. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  234. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  235. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  236. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  237. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  238. 25%|██████████████████████████████████████████████████▎ | 1/4 [00:35<01:46, 35.48s/it]QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  239. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  240. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  241. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  242. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  243. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  244. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  245. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  246. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  247. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  248. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  249. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  250. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  251. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  252. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  253. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  254. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  255. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  256. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  257. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  258. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  259. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  260. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  261. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  262. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  263. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  264. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  265. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  266. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  267. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  268. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  269. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  270. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  271. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  272. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  273. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  274. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  275. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  276. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  277. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  278. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  279. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  280. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  281. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  282. QuantizedTensor: dtype conversion requested to torch.bfloat16, but not supported for quantized tensors. Ignoring dtype.
  283. 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:52<00:00, 13.11s/it]
  284. Requested to load AutoencodingEngine
  285. !!! Exception during processing !!! _apply(): Couldn't swap Linear.weight
  286. Traceback (most recent call last):
  287. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 979, in _apply
  288. torch.utils.swap_tensors(param, param_applied)
  289. ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  290. File "C:\ComfyUI\venv\Lib\site-packages\torch\utils\__init__.py", line 45, in swap_tensors
  291. raise RuntimeError("Cannot swap t1 because it has weakref associated with it")
  292. RuntimeError: Cannot swap t1 because it has weakref associated with it
  293.  
  294. The above exception was the direct cause of the following exception:
  295.  
  296. Traceback (most recent call last):
  297. File "C:\ComfyUI\execution.py", line 510, in execute
  298. output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
  299. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  300. File "C:\ComfyUI\execution.py", line 324, in get_output_data
  301. return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
  302. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  303. File "C:\ComfyUI\execution.py", line 298, in _async_map_node_over_list
  304. await process_inputs(input_dict, i)
  305. File "C:\ComfyUI\execution.py", line 286, in process_inputs
  306. result = f(**inputs)
  307. File "C:\ComfyUI\nodes.py", line 295, in decode
  308. images = vae.decode(samples["samples"])
  309. File "C:\ComfyUI\comfy\sd.py", line 745, in decode
  310. model_management.load_models_gpu([self.patcher], memory_required=memory_used, force_full_load=self.disable_offload)
  311. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  312. File "C:\ComfyUI\comfy\model_management.py", line 671, in load_models_gpu
  313. free_memory(total_memory_required[device] * 1.1 + extra_mem, device)
  314. ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  315. File "C:\ComfyUI\comfy\model_management.py", line 603, in free_memory
  316. if current_loaded_models[i].model_unload(memory_to_free):
  317. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
  318. File "C:\ComfyUI\comfy\model_management.py", line 526, in model_unload
  319. freed = self.model.partially_unload(self.model.offload_device, memory_to_free)
  320. File "C:\ComfyUI\comfy\model_patcher.py", line 913, in partially_unload
  321. m.to(device_to)
  322. ~~~~^^^^^^^^^^^
  323. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1371, in to
  324. return self._apply(convert)
  325. ~~~~~~~~~~~^^^^^^^^^
  326. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 983, in _apply
  327. raise RuntimeError(
  328. f"_apply(): Couldn't swap {self._get_name()}.{key}"
  329. ) from e
  330. RuntimeError: _apply(): Couldn't swap Linear.weight
  331.  
  332. Prompt executed in 121.84 seconds
  333. got prompt
  334. TorchCompileModelAdvanced: Compile key list:
  335. - diffusion_model.layers.0
  336. - diffusion_model.layers.1
  337. - diffusion_model.layers.2
  338. - diffusion_model.layers.3
  339. - diffusion_model.layers.4
  340. - diffusion_model.layers.5
  341. - diffusion_model.layers.6
  342. - diffusion_model.layers.7
  343. - diffusion_model.layers.8
  344. - diffusion_model.layers.9
  345. - diffusion_model.layers.10
  346. - diffusion_model.layers.11
  347. - diffusion_model.layers.12
  348. - diffusion_model.layers.13
  349. - diffusion_model.layers.14
  350. - diffusion_model.layers.15
  351. - diffusion_model.layers.16
  352. - diffusion_model.layers.17
  353. - diffusion_model.layers.18
  354. - diffusion_model.layers.19
  355. - diffusion_model.layers.20
  356. - diffusion_model.layers.21
  357. - diffusion_model.layers.22
  358. - diffusion_model.layers.23
  359. - diffusion_model.layers.24
  360. - diffusion_model.layers.25
  361. - diffusion_model.layers.26
  362. - diffusion_model.layers.27
  363. - diffusion_model.layers.28
  364. - diffusion_model.layers.29
  365. Requested to load Lumina2
  366. !!! Exception during processing !!! _apply(): Couldn't swap Linear.weight
  367. Traceback (most recent call last):
  368. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 979, in _apply
  369. torch.utils.swap_tensors(param, param_applied)
  370. ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  371. File "C:\ComfyUI\venv\Lib\site-packages\torch\utils\__init__.py", line 45, in swap_tensors
  372. raise RuntimeError("Cannot swap t1 because it has weakref associated with it")
  373. RuntimeError: Cannot swap t1 because it has weakref associated with it
  374.  
  375. The above exception was the direct cause of the following exception:
  376.  
  377. Traceback (most recent call last):
  378. File "C:\ComfyUI\comfy\model_patcher.py", line 972, in partially_load
  379. self.load(device_to, lowvram_model_memory=current_used + extra_memory, force_patch_weights=force_patch_weights, full_load=full_load)
  380. ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  381. File "C:\ComfyUI\comfy\model_patcher.py", line 785, in load
  382. x[2].to(device_to)
  383. ~~~~~~~^^^^^^^^^^^
  384. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1371, in to
  385. return self._apply(convert)
  386. ~~~~~~~~~~~^^^^^^^^^
  387. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 983, in _apply
  388. raise RuntimeError(
  389. f"_apply(): Couldn't swap {self._get_name()}.{key}"
  390. ) from e
  391. RuntimeError: _apply(): Couldn't swap Linear.weight
  392.  
  393. During handling of the above exception, another exception occurred:
  394.  
  395. Traceback (most recent call last):
  396. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 979, in _apply
  397. torch.utils.swap_tensors(param, param_applied)
  398. ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  399. File "C:\ComfyUI\venv\Lib\site-packages\torch\utils\__init__.py", line 45, in swap_tensors
  400. raise RuntimeError("Cannot swap t1 because it has weakref associated with it")
  401. RuntimeError: Cannot swap t1 because it has weakref associated with it
  402.  
  403. The above exception was the direct cause of the following exception:
  404.  
  405. Traceback (most recent call last):
  406. File "C:\ComfyUI\execution.py", line 510, in execute
  407. output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
  408. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  409. File "C:\ComfyUI\execution.py", line 324, in get_output_data
  410. return_values = await _async_map_node_over_list(prompt_id, unique_id, obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, hidden_inputs=hidden_inputs)
  411. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  412. File "C:\ComfyUI\execution.py", line 298, in _async_map_node_over_list
  413. await process_inputs(input_dict, i)
  414. File "C:\ComfyUI\execution.py", line 286, in process_inputs
  415. result = f(**inputs)
  416. File "C:\ComfyUI\nodes.py", line 1535, in sample
  417. return common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=denoise)
  418. File "C:\ComfyUI\nodes.py", line 1502, in common_ksampler
  419. samples = comfy.sample.sample(model, noise, steps, cfg, sampler_name, scheduler, positive, negative, latent_image,
  420. denoise=denoise, disable_noise=disable_noise, start_step=start_step, last_step=last_step,
  421. force_full_denoise=force_full_denoise, noise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
  422. File "C:\ComfyUI\comfy\sample.py", line 60, in sample
  423. samples = sampler.sample(noise, positive, negative, cfg=cfg, latent_image=latent_image, start_step=start_step, last_step=last_step, force_full_denoise=force_full_denoise, denoise_mask=noise_mask, sigmas=sigmas, callback=callback, disable_pbar=disable_pbar, seed=seed)
  424. File "C:\ComfyUI\comfy\samplers.py", line 1163, in sample
  425. return sample(self.model, noise, positive, negative, cfg, self.device, sampler, sigmas, self.model_options, latent_image=latent_image, denoise_mask=denoise_mask, callback=callback, disable_pbar=disable_pbar, seed=seed)
  426. File "C:\ComfyUI\comfy\samplers.py", line 1053, in sample
  427. return cfg_guider.sample(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
  428. ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  429. File "C:\ComfyUI\comfy\samplers.py", line 1035, in sample
  430. output = executor.execute(noise, latent_image, sampler, sigmas, denoise_mask, callback, disable_pbar, seed, latent_shapes=latent_shapes)
  431. File "C:\ComfyUI\comfy\patcher_extension.py", line 112, in execute
  432. return self.original(*args, **kwargs)
  433. ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  434. File "C:\ComfyUI\comfy\samplers.py", line 984, in outer_sample
  435. self.inner_model, self.conds, self.loaded_models = comfy.sampler_helpers.prepare_sampling(self.model_patcher, noise.shape, self.conds, self.model_options)
  436. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  437. File "C:\ComfyUI\comfy\sampler_helpers.py", line 130, in prepare_sampling
  438. return executor.execute(model, noise_shape, conds, model_options=model_options)
  439. ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  440. File "C:\ComfyUI\comfy\patcher_extension.py", line 112, in execute
  441. return self.original(*args, **kwargs)
  442. ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  443. File "C:\ComfyUI\comfy\sampler_helpers.py", line 138, in _prepare_sampling
  444. comfy.model_management.load_models_gpu([model] + models, memory_required=memory_required + inference_memory, minimum_memory_required=minimum_memory_required + inference_memory)
  445. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  446. File "C:\ComfyUI\comfy\model_management.py", line 701, in load_models_gpu
  447. loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights)
  448. ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  449. File "C:\ComfyUI\comfy\model_management.py", line 506, in model_load
  450. self.model_use_more_vram(use_more_vram, force_patch_weights=force_patch_weights)
  451. ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  452. File "C:\ComfyUI\comfy\model_management.py", line 536, in model_use_more_vram
  453. return self.model.partially_load(self.device, extra_memory, force_patch_weights=force_patch_weights)
  454. ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  455. File "C:\ComfyUI\comfy\model_patcher.py", line 974, in partially_load
  456. self.detach()
  457. ~~~~~~~~~~~^^
  458. File "C:\ComfyUI\comfy\model_patcher.py", line 983, in detach
  459. self.unpatch_model(self.offload_device, unpatch_weights=unpatch_all)
  460. ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  461. File "C:\ComfyUI\comfy\model_patcher.py", line 857, in unpatch_model
  462. self.model.to(device_to)
  463. ~~~~~~~~~~~~~^^^^^^^^^^^
  464. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 1371, in to
  465. return self._apply(convert)
  466. ~~~~~~~~~~~^^^^^^^^^
  467. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 930, in _apply
  468. module._apply(fn)
  469. ~~~~~~~~~~~~~^^^^
  470. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 930, in _apply
  471. module._apply(fn)
  472. ~~~~~~~~~~~~~^^^^
  473. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 930, in _apply
  474. module._apply(fn)
  475. ~~~~~~~~~~~~~^^^^
  476. [Previous line repeated 2 more times]
  477. File "C:\ComfyUI\venv\Lib\site-packages\torch\nn\modules\module.py", line 983, in _apply
  478. raise RuntimeError(
  479. f"_apply(): Couldn't swap {self._get_name()}.{key}"
  480. ) from e
  481. RuntimeError: _apply(): Couldn't swap Linear.weight
  482.  
  483. Prompt executed in 3.44 seconds
  484.  
Advertisement
Add Comment
Please, Sign In to add comment