I might give it a shot later. The grpcserver code's a little overwhelming, because I'm not familiar with diffusers in the first place so it's a bit of hunt to figure out what does what. But I've been getting surprisingly coherent outpainting results even with the naive approach, and without CLIP guidance.
Hey, thanks again for the tips on fourier shaped noise and masking. I'm still a bit confused on how to apply this directly in latent space, with vanilla non-diffusers SD, but it's been fun to play with.
The repo is maintained by some kids from 4chan who used to make racist video game mods, is all-rights-reserved with no license (and no chance of getting one with its ~200 all-rights-reserved willing and unwilling contributors), and packed full of stolen MIT code willfully stripped of its permissive license agreements.
If you want to avoid the potential of future legal problems for your company, I would urge you to reconsider, or at least run it by a lawyer first.
Nearly everything with a GPU capable of doing it is already running at half-precision. Full/double precision is not necessary for inference here and will not improve your quality. Switching to FP16 might change your output, but not in a way that'll degrade anything.
Look at the actual defaults on vanilla SD from runwayml and compviz:
parser.add_argument(
"--precision",
type=str,
help="evaluate at this precision",
choices=["full", "autocast"],
default="autocast"
)
Basically, almost any consumer GPU capable of running this is already defaulting to FP16.
For one, code licensing has nothing whatsoever to do with AI "artists" -- the fact that the repo is a pile of copyright infringement that's itself illegal to use, modify and distribute has nothing to do with the copyright status of the pictures generated by end users. MIT is a software license.
Your pictures are probably not copyrightable at all, based on current precedent. The US copyright office has rejected that repeatedly, because you actually have to do something creatively to copyright an image. And even if they were copyrightable, it wouldn't have anything to do with the software... And some gradio UI isn't "the software" anyway -- it's just some buttons for you to push that feed a text box into the actual diffusion model.
That's great, but it doesn't have anything to do with the fact that this isn't a model or a novel algorithm, and that the question itself is incoherent.
Obviously a 2x+ speed increase is cool and I hope you have luck with the rollout
I am in no way involved with this TensorRT implementation, other than suggesting a few minutes ago that they double-check all their PRNG seeds.
, but consider a less dismissive approach to criticism
What criticism? Is misunderstanding what pytorch is and does "criticism"?
Is it fair to call it a speedup if the output is completely different?
Is it fair to call a car fast if your socks don't match?
Whatever PRNG problem is causing it to generate a different output every time is an unrelated issue and has nothing to do with performance.
Could you comment on that and do you have any metrics for the quality of the output with your approach?
What does this even mean?
edit - Okay, judging by the down votes, some you are apparently very confused, so let me try to explain this in "make_pretty_ladies.bat" terms. This is all a totally deterministic algorithm. That means, given the same CLIP embeddings ("prompt"), noise and settings, your u-net denoiser will always spit out the same result. Linear algebra doesn't have "quality metrics" -- whatever that means.
It might seem obvious, but check that you're actually properly seeding everything. I don't know what your implementation looks like but in vanilla you want to seed PyTorch, Numpy, and Python PRNGs. If you leave something out, I imagine you'll get different results every run.
My next idea is to try to teain dreambooth on normal map data, which could maybe be turned into high quality zdepth maps if it works.
You won't be able to correlate it with anything because your "rendered" model will produce totally different results.
The way this has actually been done with u-net is by cascading two of them: one for delighting feeding into another for geometry. The first could take SD output as input but after that SD is going to be a third wheel.
I seriously wonder what would happen if you trained an AI on a hypothetical dataset that is just as large, but extremely carefully labeled and contains only aesthetic, qualitative images.
Delusions of artistic grandeur for typing in "draw me pretty ladies" and idiotic warding rituals, like putting a bunch of nonsense into negatives prompts, would be curbed significantly.
From an AI researcher perspective, this is quite interesting. But it's not very clear to me what exactly it is you have done here.
Absolutely nothing. The negative prompt is just a mystical ritual (as I'm sure you can tell from its content) and, for the most post, any bad training that it filters out, it only does by accident and sheer coincidence.
Somebody did an unbiased test with these magic incantations a while ago, and it went exactly how you would expect. But if you spam the CFG with enough random nonsense, you will eventually steer the output in some random direction, for better or worse.
It depends. If you're using it in TCC mode, probably not much. Otherwise, you're losing some VRAM to the desktop environment, but the other question is whether you might run into compatibility issues. For example, xformers didn't run on windows at first, without some workarounds. Instead of guessing we can just do an apples-to-apples comparison.
When I think of a tool I think of some sort of asset pipeline and end goal in mind -- e.g. a well maintained searchable reference library, a shader graph, a LUT creator. They didn't implement it as a tool -- that takes work. They implemented it as a picture generator.
It's also remarkable how the opt-in/opt-out process is some kind of incomprehensible word salad when all you really have to do is let your usership basically configure their own robots and noindex tags and then obey them, as if you were any other well behaved crawler. The web standards to handle this have existed since the 90s.
Because it's panty shots of eight year olds in lingerie blushing and making hentai eyes at the camera, you idiot. No CS graduates I know are pedophiles and I wasn't aware that 4chan pedo shit is an integral part of Chinese culture.
Results just look bad, but it's hard to appraise an implementation when half the examples are a bunch of pedo shit.
Also what I assume is supposed to be a paper is named but is nowhere to be found by that title. Going by what's here, the only part that kind of works just seems to be a subpar zero/few shot style transfer.
How about this compromise: abide by the fucking license terms you agree to when you copy someone's permissively licensed code for your proprietary, closed source repository.
You're part of a growing list of unwilling "contributors" whose code was lifted by that gaggle of 4chan twits. You do what you think is right, but I wouldn't hesitate for one second to file a DMCA takedown. You have every legal and moral right -- this was not an honest mistake.
I might give it a shot later. The grpcserver code's a little overwhelming, because I'm not familiar with diffusers in the first place so it's a bit of hunt to figure out what does what. But I've been getting surprisingly coherent outpainting results even with the naive approach, and without CLIP guidance.
Hey, thanks again for the tips on fourier shaped noise and masking. I'm still a bit confused on how to apply this directly in latent space, with vanilla non-diffusers SD, but it's been fun to play with.
The repo is maintained by some kids from 4chan who used to make racist video game mods, is all-rights-reserved with no license (and no chance of getting one with its ~200 all-rights-reserved willing and unwilling contributors), and packed full of stolen MIT code willfully stripped of its permissive license agreements.
If you want to avoid the potential of future legal problems for your company, I would urge you to reconsider, or at least run it by a lawyer first.
That's not how TensorRT works.
Nearly everything with a GPU capable of doing it is already running at half-precision. Full/double precision is not necessary for inference here and will not improve your quality. Switching to FP16 might change your output, but not in a way that'll degrade anything.
Look at the actual defaults on vanilla SD from runwayml and compviz:
Basically, almost any consumer GPU capable of running this is already defaulting to FP16.
For one, code licensing has nothing whatsoever to do with AI "artists" -- the fact that the repo is a pile of copyright infringement that's itself illegal to use, modify and distribute has nothing to do with the copyright status of the pictures generated by end users. MIT is a software license.
Your pictures are probably not copyrightable at all, based on current precedent. The US copyright office has rejected that repeatedly, because you actually have to do something creatively to copyright an image. And even if they were copyrightable, it wouldn't have anything to do with the software... And some gradio UI isn't "the software" anyway -- it's just some buttons for you to push that feed a text box into the actual diffusion model.
There are so many layers of just baffling confusion in this post that it would take archeologists decades to uncover them all...
That's great, but it doesn't have anything to do with the fact that this isn't a model or a novel algorithm, and that the question itself is incoherent.
I am in no way involved with this TensorRT implementation, other than suggesting a few minutes ago that they double-check all their PRNG seeds.
What criticism? Is misunderstanding what pytorch is and does "criticism"?
Is it fair to call a car fast if your socks don't match?
Whatever PRNG problem is causing it to generate a different output every time is an unrelated issue and has nothing to do with performance.
What does this even mean?
edit - Okay, judging by the down votes, some you are apparently very confused, so let me try to explain this in "make_pretty_ladies.bat" terms. This is all a totally deterministic algorithm. That means, given the same CLIP embeddings ("prompt"), noise and settings, your u-net denoiser will always spit out the same result. Linear algebra doesn't have "quality metrics" -- whatever that means.
It might seem obvious, but check that you're actually properly seeding everything. I don't know what your implementation looks like but in vanilla you want to seed PyTorch, Numpy, and Python PRNGs. If you leave something out, I imagine you'll get different results every run.
You won't be able to correlate it with anything because your "rendered" model will produce totally different results.
The way this has actually been done with u-net is by cascading two of them: one for delighting feeding into another for geometry. The first could take SD output as input but after that SD is going to be a third wheel.
Look up intrinsic decomposition.
Delusions of artistic grandeur for typing in "draw me pretty ladies" and idiotic warding rituals, like putting a bunch of nonsense into negatives prompts, would be curbed significantly.
Absolutely nothing. The negative prompt is just a mystical ritual (as I'm sure you can tell from its content) and, for the most post, any bad training that it filters out, it only does by accident and sheer coincidence.
Somebody did an unbiased test with these magic incantations a while ago, and it went exactly how you would expect. But if you spam the CFG with enough random nonsense, you will eventually steer the output in some random direction, for better or worse.
You can check available devices with e.g.
Assuming Linux, you'd set CUDA_VISIBLE_DEVICES as a variable with your shell, e.g.
- for first GPU, or -
- to disable CUDA.
It depends. If you're using it in TCC mode, probably not much. Otherwise, you're losing some VRAM to the desktop environment, but the other question is whether you might run into compatibility issues. For example, xformers didn't run on windows at first, without some workarounds. Instead of guessing we can just do an apples-to-apples comparison.
Not gay, but at this point I'll take it just to break up the monotony. More oiled up muscly dudes please.
Also, if you're doing benchmarks to compare with non-consumer GPUs, probably don't do it on fucking windows.
When I think of a tool I think of some sort of asset pipeline and end goal in mind -- e.g. a well maintained searchable reference library, a shader graph, a LUT creator. They didn't implement it as a tool -- that takes work. They implemented it as a picture generator.
It's also remarkable how the opt-in/opt-out process is some kind of incomprehensible word salad when all you really have to do is let your usership basically configure their own robots and noindex tags and then obey them, as if you were any other well behaved crawler. The web standards to handle this have existed since the 90s.
Because it's panty shots of eight year olds in lingerie blushing and making hentai eyes at the camera, you idiot. No CS graduates I know are pedophiles and I wasn't aware that 4chan pedo shit is an integral part of Chinese culture.
there's gonna be some awkward email exchanges if this is actually the theme they went with for the submission
Results just look bad, but it's hard to appraise an implementation when half the examples are a bunch of pedo shit.
Also what I assume is supposed to be a paper is named but is nowhere to be found by that title. Going by what's here, the only part that kind of works just seems to be a subpar zero/few shot style transfer.
These look fantastic. Thanks for sharing your code and process.
How about this compromise: abide by the fucking license terms you agree to when you copy someone's permissively licensed code for your proprietary, closed source repository.
You're part of a growing list of unwilling "contributors" whose code was lifted by that gaggle of 4chan twits. You do what you think is right, but I wouldn't hesitate for one second to file a DMCA takedown. You have every legal and moral right -- this was not an honest mistake.
Not to be the pedant, but none of those is isometric, or even orthographic more generally, as far as I can tell.