Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grey Image when generating using NF4 #420

Open
iamsuper123 opened this issue Jan 15, 2025 · 0 comments
Open

Grey Image when generating using NF4 #420

iamsuper123 opened this issue Jan 15, 2025 · 0 comments

Comments

@iamsuper123
Copy link

I generated an image using flux and it's completely gray

Image

some information:
model used: flux1_dev_bnb_nf4_v2
python version: 3.10.6
I tried to use the AE.safetensors vae, except I didn't see a vae option box, so instead I went to settings and specified the vae model there, restarted.
COMMANDLINE_ARGS= --upcast-sampling --lowvram --opt-sub-quad-attention

here's the logs:
venv "C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing sd-webui-controlnet requirement: changing opencv-python version from 4.10.0.84 to 4.8.0
Launching Web UI with arguments: --upcast-sampling --lowvram --opt-sub-quad-attention
C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\venv\lib\site-packages\timm\models\layers_init_.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
warnings.warn(f"Importing from {name} is deprecated, please import via timm.layers", FutureWarning)
WARNING:xformers:WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
PyTorch 2.1.2+cu121 with CUDA 1201 (you have 2.3.1+cu121)
Python 3.10.11 (you have 3.10.6)
Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
Memory-efficient attention, SwiGLU, sparse and more won't be available.
Set XFORMERS_MORE_DETAILS=1 for more details
No module 'xformers'. Proceeding without it.
*** Error loading script: main.py
Traceback (most recent call last):
File "C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 14, in
from basicsr.utils.download_util import load_file_from_url
ModuleNotFoundError: No module named 'basicsr'

[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
ControlNet preprocessor location: C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-12-29 18:32:06,396 - ControlNet - INFO - ControlNet v1.1.441
2024-12-29 18:32:06,494 - ControlNet - INFO - ControlNet v1.1.441
Checkpoint sd_xl_base_1.0.safetensors not found; loading fallback flux1-dev-bnb-nf4-v2.safetensors [fef37763b8]
Loading weights [fef37763b8] from C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\models\Stable-diffusion\flux1-dev-bnb-nf4-v2.safetensors
2024-12-29 18:32:06,728 - ControlNet - INFO - ControlNet UI callback registered.
Creating model from config: C:\Users\alienware\Desktop\very important shit\ai (32 gb)\stable-diffusion-webui\configs\v1-inference.yaml
Deforum ControlNet support: enabled
Running on local URL: http://127.0.0.1:7860/

To create a public link, set share=True in launch().
Startup time: 27.3s (prepare environment: 8.3s, import torch: 5.3s, import gradio: 1.1s, setup paths: 9.3s, initialize shared: 0.8s, other imports: 0.5s, load scripts: 1.0s, create ui: 0.7s, gradio launch: 0.3s).
Applying attention optimization: sub-quadratic... done.
Model loaded in 8.9s (load weights from disk: 0.5s, create model: 4.7s, apply weights to model: 2.3s, apply half(): 0.4s, calculate empty prompt: 0.9s).
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:44<00:00, 2.23s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:41<00:00, 2.08s/it]
20%|████████████████▌ | 4/20 [05:09<20:39, 77.47s/it]
Total progress: 20%|█████████████▍ | 4/20 [04:02<16:11, 60.71s/it]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:33<00:00, 1.69s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:32<00:00, 1.60s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:32<00:00, 1.45s/it]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant