Open asd417 opened 1 year ago
Yeah that's an issue I need to fix.
didja fix it?
It's an xformers problem. Xformers optimizations make the generations undeterministic, hence why I stopped using it in auto webui long ago. Haven't looked into it but there should be a way to disable xformers if there's none.
To [mostly] address this issue, one can run ComfyUI with
python main.py --use-pytorch-cross-attention
This should disable Xformers and allow for repeatiblity across generations
xformers is deterministic as of 0.0.19. https://github.com/facebookresearch/xformers/releases/tag/v0.0.19
Good to know! Maybe I'm complelety offbase with the Xformers stuff?
Either way, until I used the above command all of my generations with ComfyUI were unrepeatable and random - directly after starting ComfyUI with --use-pytorch-cross-attention
changing seeds back and forth generated what looks to be the same image.
All these images are generated with exact same seed and node structure. I believe that the images above maintain their exif data but here is the node structure:
You can see that the two seed inputs are linked together. the ui does not even let me generate this twice in a row because it's the same prompt.
I think it's a bit of a problem for this to be not deterministic. Will this issue be fixed?