Coder Social home page Coder Social logo

Comments (5)

valconius avatar valconius commented on August 17, 2024 1

I think the text file is generated by my webui settings. Therein are the generation parameters (minus the seed only if it is -1). If the seed was to be -1 then it also does not appear in pnginfo.

Presently, I put an axis that has one option for seed=constant and another for seed=-1. Before generating a grid, I manually make a few grids to find a good seed. Then, in the infinity grid, I set the random seed as a super-axis. This is a quick and easy way to check if a bad result was the fault of an embedding or hypernetwork or if that result was actually fine on another seed. Of course, rather than mindlessly generating 2x or 5x as many images by specifying additional seeds, I can just set the embed or hypernetwork as an axis and scan the random seed section to see what else popped out. It is a bit strange but think of it as fuzzing a set of parameters to vaguely correct presumptuous assumptions of success or failure. I do this when I have super-huge grids, which admittedly is only one grid so far since they take a long time to generate when I'm trying to do this.

It is also a fun setting to get infinite random funny pictures.

from sd-infinity-grid-generator-script.

mcmonkey4eva avatar mcmonkey4eva commented on August 17, 2024

So as an initial reply to this issue and #14 as well:

  • You're using the grid generator a bit outside the original intentions. Having randomness per-image is, well, the opposite of the intended idea of a pregenerated grid, wherein all values are consistent along a row other than one controlled variable.
  • That said, it might be possible to expand the extension to support your case, it'll just take some active intentional development work to support this different usage.
  • Generated seed should be in the pnginfo, if it's not that's a bug and will have to be fixed
  • There isn't a text file stored alongside images. All generated text data is in one big json file and stores data per axis and per value entry within that axis - ie data unique to an individual image isn't stored except on the image itself. (And, unfortunately, for complicated unfortunate reasons, the webinterface actually doesn't have access to image metadata - refer to #6 for details on exploring that issue)
  • It would be possible to dump extra files for that anyway as an optional feature if you want it I suppose

from sd-infinity-grid-generator-script.

itswhateverman avatar itswhateverman commented on August 17, 2024

I can see the value in these suggestions.
Being able to use traditional wildcards for prompts or random seeds for the first run could speed things up, but for the comparison capability to be any value you'd want to persist it from there by writing it back to the yml or to a sidecar file so its honored on future runs.

I guess the total randomness option could have its uses in generating a large set of random images to kind of stress test a model or find seeds to iterate further on but the grid loses a lot of utility when the correlation between the rows becomes meaningless. If mass random gens is the goal an adaptation to support this use in the grid generator would probably make your tool the best suited to do so against a variety of configuration parameters.

from sd-infinity-grid-generator-script.

mcmonkey4eva avatar mcmonkey4eva commented on August 17, 2024

I fixed the bug part of this, wherein seed was -1 in pnginfo - pnginfo now has the correct seed.

from sd-infinity-grid-generator-script.

mcmonkey4eva avatar mcmonkey4eva commented on August 17, 2024

I tried individual per-image metadata files in the grid tool for https://github.com/Stability-AI/StableSwarmUI and, while some of the issues mentioned before in the other thread remain present, it does work well, so I'll like port it back to here as an option.

from sd-infinity-grid-generator-script.

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.