Code Monkey home page Code Monkey logo

Comments (6)

vladmandic avatar vladmandic commented on July 23, 2024 1

ah, i understand now.
its not that variation seed was locked, its just that seed was used to initialize random number generator before variation seed random pick happens, so it pretty much always picked the same random number.

fixed.

from automatic.

ForceX34 avatar ForceX34 commented on July 23, 2024

Reopen. I thought 7998f40 resolved but i did not have Initial seed set to fixed / reuse. Variation seed fixed / reuse bool is still linked to the initial seed fixed / reuse bool.

Sorry for the confusion

from automatic.

ForceX34 avatar ForceX34 commented on July 23, 2024

Video screen capture
https://github.com/vladmandic/automatic/assets/33190317/70b2a298-4bb0-465d-bff9-e4a466278f4b

from automatic.

vladmandic avatar vladmandic commented on July 23, 2024

i just noticed one other thing that variation seed was not correctly added to metadata, that is now fixed.

regarding your notes, i'm not sure what is the expected behavior?
maybe i'm wrong, but from what i can tell, both seed and variation seed random and reuse are now independent of each other and are working fine.

from automatic.

ForceX34 avatar ForceX34 commented on July 23, 2024

Which commit version and I will test.

Please correct me if i am wrong, the way I understand the "Variation Seed" is to add additional noise to the "Initial Seed". We use it to generate altered variations of a particular determined seed. As of right now (commit f55e14b) this is true but the Variation does not generate random numbers when the Initial Seed is locked to a determined seed value. I posted a video capture in my response above. What it shows is : https://github.com/vladmandic/automatic/assets/33190317/70b2a298-4bb0-465d-bff9-e4a466278f4b

Part 1 : Initial Seed and Variation Seed are set to random. I first show that the Variation Seed will generate a unique seed for every generation. I do this by applying the "Reuse Image" button to show the seed value.

Part 2 : Initial Seed is set to a fixed seed value, Variation Seed is set to random and the Variation Strength is increased to allow the variation to alter the initial image. What you will notice is that on the first image generation after the Initial Seed has been locked is that the Variation will generate a new seed value (thus a new image), however on further generations the Variation seed becomes stuck (?) and will not generate a new random seed value (thus the same image being generated) even though the Variation is set to be random. This prevents generating unique alterations of the initial seed. I show that the Variation seed is stuck by applying the "Reuse Image" button to show the seed value, then reset back to random, generate a new image, and repeat. You will notice that the Variation seed value and the image generated do not change.

For some reason you will get a new Variation seed value on the first image generation after the Initial Seed value has been locked but not after the first image generation. So if you are trying to run Variations of a particular seed you get one image generation then it gets stuck.

Example:

  1. Lets use 12345 for the initial seed value.
  2. Variation Seed = Random and Variation Strength is increased. We expect to get a new random number for every generation and with it a altered image generated.
  3. After the first image generation we get a new Variation Seed 67890 and in return we get a altered generated image.
    Rendering a new image again we would expect a different alteration of the image as we would expect a different Variation seed value.
    Instead we get the exact same image because the Variation seed value never changes. It stays 67890 even though it is set to be a new random value.

Again Variation Seed random generation only gets stuck when the Initial seed is locked to a determined seed. I suspect somehow that the Variation Seed is referencing some value of the Initial Seed. I would think based on the behavior that Variation Random state is accidently assigned the Initial Seed Random (bool), flag, true/false state instead of it's own (bool) variable

Of course we can simply type random numbers into the Variation Seed field and get the desired outcome of generating a unique alteration of the initial image but having to manually type numbers in defeats the purpose of having a random number generator.

from automatic.

ForceX34 avatar ForceX34 commented on July 23, 2024

YES!! I can confirm that it is working as expected. Thank you! You and your git team are awesome!

from automatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.