# "Load Diffusion Model" and "Unet Loader (GGUF)" null/undefined

**URL:** <https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710>\
**Category:** Beginners\
**Created:** [December 16, 2024, 12:59pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710 "2024-12-16T12:59:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AIGismo](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AIGismo](https://discuss.huggingface.co/u/AIGismo)\
**Post date:** [December 16, 2024, 12:59pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/1 "2024-12-16T12:59:03Z")

</div>

Hello, hello,

I was searching for an option to create characters out of an image.  
I have found a possible workflow.

Due to I am new to ComfyUI I have installed the latest version, including phyton.  
I have read that the upper mentioned workflow only works with ComfyUI version 0.2.3 or lower.  
For this reason I have installed this version, too.

Now my issue.  
On the latest version it is possible to select a checkpoint out of “unet” or “diffusion\_models” inside of nodes “Unet Loader (GGUF)” & “Load Diffusion Model”. But it is not possible to install Pulid-Nodes (because of Python version).

On version 0.2.3 it is possible to add Pulid-Nodes, but it is not possible to select a safetensor out of “Unet Loader (GGUF)” & “Load Diffusion Model”. Values are null or undefined. I have copied specific safetensors in folders “unet” and “diffusion\_models”. I have tried to update ComfyUI, python, crosscopied python of both versions. Unfortunately nothing works.

Additional information: I don’t know if these topics are connected:  
Failure message in cmd:

- Import failed: custom\_nodes\webui-controlnet-v1-archived-main
- Import failed: custom\_nodes\ComfyUI-Advanced-ControlNet

Thanks in advance for your support.  
Regards

---

<div class="post-metadata">

**Author:** ![Alanturner2](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/alanturner2/32/37542_2.png) [@Alanturner2](https://discuss.huggingface.co/u/Alanturner2)\
**Post date:** [December 16, 2024, 2:18pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/2 "2024-12-16T14:18:08Z")

</div>

#### 1. Verify Python Environment:

- Use **Python 3.10.x** , as it’s a commonly supported version for such tools.
- Ensure you create separate virtual environments for different ComfyUI versions to avoid cross-dependency conflicts.

bash

Copy code

```auto
python -m venv comfyui_env_0_2_3
python -m venv comfyui_env_latest

```

#### 2. Manage ComfyUI Versions:

- Install ComfyUI in respective environments and keep them isolated.

bash

Copy code

```auto
source comfyui_env_0_2_3/bin/activate
pip install comfyui==0.2.3
# For the latest version
source comfyui_env_latest/bin/activate
pip install comfyui

```

#### 3. Address Node Issues:

- **For Pulid-Nodes** : Ensure compatibility by checking Pulid-Nodes’ requirements and their GitHub repository for updates. Install their dependencies using `pip install -r requirements.txt`.
- **For Safetensor Loading** :
  - Verify that the safetensors are correctly placed in `unet` or `diffusion_models`.
  - Check folder paths in `config.json` or ComfyUI settings for accuracy.

#### 4. Debug CMD Errors:

- Inspect the node directories (`custom_nodes\webui-controlnet-v1-archived-main` and `custom_nodes\ComfyUI-Advanced-ControlNet`). Remove nodes temporarily and test loading ComfyUI without them.
- Update related dependencies for these nodes.

---

<div class="post-metadata">

**Author:** ![AIGismo](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AIGismo](https://discuss.huggingface.co/u/AIGismo)\
**Post date:** [December 16, 2024, 10:01pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/3 "2024-12-16T22:01:15Z")

</div>

Hi Alan,  
thank you for your support.  
To be honest I am a total newb.

Could you please give me once a dummy manual where I have to insert command “bash” or “python -m venv comfyui\_env\_0\_2\_3” to create the virtual environment?  
Same for “source …”

I have tried cmd in several folders and typed in those commands, but I receive always “command not known” … etc.

I have downloaded python-3.10.11-embed-amd64.zip and out of desperation I have tried to replace 3.11.xx but this doesn’t worked (comfyui doesn’t start). I have undone this action.

## Next, I have deleted both ComfyUI’s:

D:\Program Files\ComfyUI\_windows\_portable\_v0.2.3  
D:\Program Files\ComfyUI\_windows\_portable\_v0.2.3\python\_embeded \<— python 3.11.9

## D:\Program Files\ComfyUI\_windows\_portable \<— 0.3.7 D:\Program Files\ComfyUI\_windows\_portable\python\_embeded \<— python 3.12.7

Next, I have created a new installation:  
D:\ComfyUI\_windows\_portable\_v0.2.3

But I think I made it even worse. Currently I am facing both issues:

- Can’t open a safetensor from “Unet Loader (GGUF)” & “Load Diffusion Model” although folders are filled “models\diffusion\_models\FLUX1\flux1-dev-fp8.safetensors” & “models\unet\FLUX1\flux1-dev-fp8.safetensors”

- Not possible to install Pulid-Nodes (Import failed)

About information:

- ComfyUI 0.2.3
- Python Version 3.11.9
- Embedded Python true
- Pytorch Version 2.4.1+cu124

Due to the fact that I can’t install Pulid-Nodes I think I am grabbing after a higher version of python in the background.

I also installed python 3.10.11 on C:\

Sorry, but I need deeper support regarding hints 1. and 2.

Thanks in advance and regards

---

<div class="post-metadata">

**Author:** ![motoyagugu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/motoyagugu/32/37746_2.png) [@motoyagugu](https://discuss.huggingface.co/u/motoyagugu)\
**Post date:** [December 17, 2024, 6:31pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/4 "2024-12-17T18:31:04Z")

</div>

After upgrading to the new version of ComfyUI, if you use GGUF loader once, you will find you can never use the Load Diffusion Model node to load .safetensor file, only GGUF file can be displayed and chose! I don’t know except creating a new environment, is there other way to solve it?

---

<div class="post-metadata">

**Author:** ![ansat7](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@ansat7](https://discuss.huggingface.co/u/ansat7)\
**Post date:** [December 17, 2024, 6:58pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/5 "2024-12-17T18:58:27Z")

</div>

Facing same issue… looks like a bug!! @motoyagugu  
[safetensors do not appear in Load Diffusion Model node while the models already in unet folder · Issue #179 · city96/ComfyUI-GGUF · GitHub](https://github.com/city96/ComfyUI-GGUF/issues/179) - uninstalling flow control fixes this issue.

---

<div class="post-metadata">

**Author:** ![fancypantz](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/fancypantz/32/37815_2.png) [@fancypantz](https://discuss.huggingface.co/u/fancypantz)\
**Post date:** [December 19, 2024, 3:11am UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/6 "2024-12-19T03:11:00Z")

</div>

having the same problem

---

<div class="post-metadata">

**Author:** ![AIGismo](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@AIGismo](https://discuss.huggingface.co/u/AIGismo)\
**Post date:** [December 20, 2024, 10:13am UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/7 "2024-12-20T10:13:22Z")

</div>

Hello ansat7,  
thank you for your hint (link).  
I can confirm that “Load Diffusion Model” works again after uninstalling ComfyUI-Flow-Control.  
Regards!

---

<div class="post-metadata">

**Author:** ![robertandri](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@robertandri](https://discuss.huggingface.co/u/robertandri)\
**Post date:** [January 13, 2025, 7:54pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/8 "2025-01-13T19:54:52Z")

</div>

I fixed this by deleting the gguf folder from ComfyUI/custom\_nodes/ComfyUI-Flow-Control/nodes … probably if you just delete the nodes.py file from the folder is enough … the file is probably overwrites the node.py torch method of loading the models.

---

<div class="post-metadata">

**Author:** ![maoxiaya](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/maoxiaya/32/43882_2.png) [@maoxiaya](https://discuss.huggingface.co/u/maoxiaya)\
**Post date:** [March 22, 2025, 3:11pm UTC](https://discuss.huggingface.co/t/load-diffusion-model-and-unet-loader-gguf-null-undefined/131710/9 "2025-03-22T15:11:19Z")

</div>

I solved it with this method
