zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
507 stars 44 forks source link

Seed Viewing/Reusing #101

Closed seijihariki closed 1 year ago

seijihariki commented 1 year ago

Is your feature request related to a problem? Please describe. We almost forgot the feature that was requested on reddit for viewing/reusing the seed used for generation.

Describe the solution you'd like As the API does not provide this value, we can try locally generating a seed, and using that to send to the API when seed is set to - 1.

seijihariki commented 1 year ago

This process could actually fix the set seed "more" generation (for now it creates copies of thr first batches)

zero01101 commented 1 year ago

As the API does not provide this value,

:D i get to show off something i know!! on the _dream response, yknow how we're returning data.images? try adding

var responseSubdata = JSON.parse(data.info);
    console.log(
        "seed: " +
            responseSubdata.seed +
            "\nall seeds: " +
            JSON.stringify(responseSubdata.all_seeds) +
            "\nsubseed: " +
            responseSubdata.subseed +
            "\nall subseeds: " +
            JSON.stringify(responseSubdata.all_subseeds)
    );

right before returning data.images ;)

nothing against throwing in our own PRNG of course lol

seijihariki commented 1 year ago

That's cool! Can you do this one, then?

seijihariki commented 1 year ago

Didn't know it returned more than just the images themselves.

zero01101 commented 1 year ago

sure thing! likely won't get a chance to do anything with it tonight unfortunately, but feel free to unassign yourself from this one if you'd like :)

zero01101 commented 1 year ago

i lied :D random seed reuse now in testing, there's a "U" button in the post-dream minitools that when hovered over shows the current seed and will send it to the seed input; also added the seed value to resource default titles