Git Product home page Git Product logo

Comments (1)

zero01101 avatar zero01101 commented on July 16, 2024

I'm kinda confused on its implementation.

lmao that makes at least two of us :D the implementation was and continues to be "i don't know how to make it but i think i know what i want so i'm going to just keep trying things until one gets close"

so the initial intent was based off of these two reddit posts and associated discord post:
image
and there's a greater-than-random chance that i've still completely done it wrong lol

essentially, it "seemed" like manually masking over a seam before outpainting really did do nice things for camouflaging the seams and i figured "well shucks, that should be able to be done in the background automagically" and received a hefty lesson in hubris :) my first attempt was indeed to simply expand the white region x pixels in all cardinal directions, which really just... visibly moved the seam x pixels in the appropriate cardinal direction. i tried changing that to a small gradient based on 255/overmaskpx, which just made a MORE visible mask with an obvious gradient. tried changing the gradient falloff to a more linear one, don't quite remember the exact math, it was literally just throwing stuff at the wall and seeing what sticks lol, but it didn't work either. i tried randomly stippling individual pixels and that was by FAR the worst result yet, i got nothing but windowpaned unrelated images with noisy borders in practically EVERY outpaint.

i tried most recently to simply find the equivalent paths of the white regions and draw a simple "paint mask" style line over it, but i was too stupid to get that to work right, but discovered that if i just threw an x px circle over each pixel of the overpaint seams, it effectively does exactly that, and the "humanization" just came in as a further attempt to kinda hide the seams.

it could be all placebo but i SWEAR it actually kinda works pretty well now :)

i will readily admit to just using inefficient loops where something like maybe a map reduce would probably be infinitely superior but i also don't exactly know how to map reduce and pretty much just google for a remedial solution to whatever problem i'm facing at the moment and push the one that works which is probably untenable in the long run lol

from openoutpaint.

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.