lllyasviel / lllyasviel/stable-diffusion-webui-forge
### Is there an existing issue for this?
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
### What happened?
I have confirmed on my end that a seed saved to a file that has a random roll is wrong.
Updated photos as accidently put a nsfw one up second image that was a totally different girl, hair colour etc.
Initially I couldn't regenerate a friends images and dug deeper and found that the seed saved to the image from a random roll are wrong.
Irrelevant test as sample was off
I generated this image a few hours ago so no updates in the meantime since.


Copied the data meta using Diffusion Toolkit and tried to regenerate the image right now as I type this and got this one below instead.
Any attempt using the settings in the above image will just render this bottom one.
So it appears the seed that saved from a random roll is bugged.


I have checked in Diffusion Toolkit and rolled a image from one saved with a static seed its fine.
### Steps to reproduce the problem
Render image with a ransom seed
Try to recreate same image with the exact same settings prompts and seed
### What should have happened?
Same image should have been created but a different one is.
### Commit where the problem happens
commit: 3715ece0
### What platforms do you use to access the UI ?
Windows
### What browsers do you use to access the UI ?
Google Chrome
### Command Line Arguments
```Shell
xformers has no difference
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--reinstall-torch --xformers --reinstall-xformers
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:128
git pull
call webui.bat
Other bat I use
@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--reinstall-torch
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:128
git pull
call webui.bat
```
### List of extensions
No
### Console logs
```Shell
Not relevant as its image generation
```
### Additional information
Tried between me and another person I couldn't render his images myself from random seed roll that was rendered in the file but his static one worked so I dug deeper and found this bug.
_Originally posted by @Revenger in https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7808_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue on commit 3715ece0 using a random seed and then a static seed, comparing the saved image metadata with the rendered result. The fix is complete when the exact settings, prompts, and saved random seed regenerate the same image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100