Comments (6)
@lllyasviel I noticed you did initial version of fix in 1.0.35, but it could be improved a bit - instead of:
def refresh_seed(r, s):
if r:
return random.randint(1, 1024*1024*1024)
else:
return s
in webui.py
I'd go with
def refresh_seed(r, s):
if r or not isinstance(s, int) or s < 0 or s > 2**63 - 1:
return random.randint(0, 2**63 - 1)
else:
return s
to refresh seed in case user entered value out of allowed range.
You could also bump max_seed in async_worker.py
from 1024*1024*1024
to 2**63 - 1
. People use 64-bit machines these days, and you already use similar values in core.py
- I made all of them consistent, and staying in 0 to 2**63-1 range on my fork.
from fooocus.
negative or large seed will still work as they willl be preprocessed inner worker
from fooocus.
@lllyasviel They will work, but in your version they will be silently re-generated, and not displayed to the user in the UI.
from fooocus.
this impl cannot get same results from same negative number as seed
from fooocus.
It just generates new seed (from valid range) when out-of-range number is entered.
from fooocus.
Works fine in v2.1.739 (seeds from 0 to 2 ** 63 - 1 are now supported).
from fooocus.
Related Issues (20)
- [Feature Request]: LoRA notification support in prompt array HOT 1
- [Bug]: Switching preset loads model always from first models dir instead of checking all
- [Feature Request]: Support for Flux1-Dev-bnb-nf4 in Foocus HOT 1
- [Bug]: gradio.exceptions.Error: 'Unsupported image type in input' HOT 1
- [Bug]: Unsupported image type in input when using input image HOT 6
- Disable GPU driver check during install
- [Bug]: mixing_image_prompt_and_inpaint HOT 2
- [Bug]: files, logs not saving - with Enhancements on with "before" and Save only final image, result in output only into the /temp directory, not into /output
- [Bug]: RuntimeError: unable to mmap ... Cannot allocate memory HOT 1
- [Bug]: Loras embedding stoped working
- [Bug]: Click/Drag Generated Image to Image Prompt (or Inpaint) Does Nothing
- [Bug]: Can't generate image
- [Feature Request]: Alternative Install Method For Linux Distros HOT 2
- Linux Mint 22 Compatibility Issues HOT 10
- [Feature Request]: Just a comment that your software works fine with my fanless Nvidia GT 1030 with only 2 GB of VRAM -- may want to add to document.
- [Feature Request]: Click-to-Select Inpainting Area and Padding Option in Fooocus
- [Bug]: GPU not connected.
- [Bug]: Low vram mode has an error
- [Feature Request]: Hotkey to hide the inpainting GUI icons
- [Bug]: Github Security Lab Vulnerability Report
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fooocus.