The flux dev model outputs pure black on 4090
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
### Expected Behavior
Troubleshoot the flux-fp8-dev black graph
### Actual Behavior
Running flux-fp8-dev e4m3fn on 4090 using Vincennes graphs will always be black, it still appears after disabling all plugins, but there is no such problem on schnell's model and other models.
When a black image appears, an error message is found in the background::RuntimeWarning: invalid value encountered in cast
img = Image.fromarray(np.clip(i, 0, 255).astype(np.uint8))
### Steps to Reproduce
Black diagrams appear on any sample workflow for flux Venting diagrams, including torch2.4.0, cu12.4B33CD61, and recent versions
### Debug Logs
```powershell
Starting server
To see the GUI go to: http://127.0.0.1:8188
FETCH DATA from: D: \comfyUI windows_portable\comfyUI\custom nodes\comfyUI-Manager extension-node-map.json [DONEI
got prompt
Using xformers attention in VAE
Using xformers attention in VAE
model weight dtype torch.float8 e4m3fn, manual cast: torch.bfloat16
model type FLUX
Requested to load FluxClipModel
Loading 1 new model
loaded completely 0.0 4777.53759765625 True
clip missing:['text projection.weight']
D: \Comf
windows portable\comfyUI\comfy\ldm modules attention.py:407: UserWarning: 1Torch was not compiled with flash att
ion.(T
dp_uti
rigger
ls.cpp:555.)
out = torch.nn.functional.scaled dot product attention(q, k, v, attn mask=mask, dropout p=8.8, is causal=False)
Requested to load Flux
Loading 1 new model
loaded completely 0.0 11350.048889160156 True
6/6[00:02<00:00,2.32it/s]
180%
Requested to load AutoencodingEngine
oading 1 new model
loaded completely 0.0159.87335777282715 True
D:\ComfyUI windows portable\comfyUI\nodes.py:1498: RuntimeWarning: invalid value encountered in cast
img=Image.fromarray(np.clip(i,0,255).astype(np.uint8))
Prompt executed in 19.87 seconds
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.