13 ms·
Try Stable Diffusion's Img2Img Mode
- keepquestioning 4y agoCan't help but see this as a friendly herald for a dystopian future.
- rvz 4y agoThere you go. We were promised quite far fetched things like 'flying cars', 'time travel', 'life extension' and 'universal basic income'. Instead we get Deep Learning AI's being used for generating and faking sentences, images, videos, voices, code and digital art all being trained on mountains of data in data centers all significantly contributing to the already burning up of the planet to no benefit and no efficient alternatives. A dystopian future with deepfakes and easy fake news creation thanks to the technologists who helped create those things for others to create a new griftopia on top of that. So you will own nothing, believe everything that you see on the internet, and be very happy.
- desindol 4y agoYou must be kidding it’s hard labor creating images and you are complaining that it’s going to be easier in the future? You are complaining that the skill gap is eradicated and it now only depends on your ideas to produce compelling work? That’s absolutely insane everything that takes labor intensive tasks and makes them basically free is the future. This is not dystopian it’s our future, a future in which you and your capabilities don’t matter. It’s exactly the future we need and doing it opensource is exactly the way to keep it out of harms way of turbo capitalism. You are missing the point so hard it’s not even funny. Flying cars for the 1% is dystopian.
- omnimus 4y agoThe skill gap was what made it valuable. There is not that much value in flooding everyone with generated images that have no story, no person behind it, no effort, no reason to exist, out of place. “Art” is as much about the final image as it is about the person who made it, why she made it and how she got there. Also there is pretty dystopian angle because these tools balantly stole all the work of artists by “learning” on their work (without pemission). Calling it learning is too nice we all know its just huge visual pattern copy mashup paste machine. People are not gonna invent with this - they just add name of artist they like to the prompt and get to call that their work. Its not liberation - its exploitation. Its gonna destroy peoples lives by making their hard earned skills obsolete. Then again it probably wont be so bad. Artists wont disappear and people wont suddenly become artists just because they can write into prompt.
- desindol 4y agoYou in 1894: Why does no one think about all the horses and stable boys. The value of art is also not in the hours you put into creating it it's about the idea behind it and how it's conveyed. Artists are also always stealing especially concept artists the only thing to say is "photobashing". You talk like someone who has absolutely no idea how the sausage is made.
- omnimus 4y agoYes, yes and invention of camera will kill painters. Sure everybody knows this. But there is important difference between someone stealing and some algorithm copy replicating anything from the past in instant. One is a remix that brings something new (even if author doesn't want) the other in static its conservation. It will create side effects that will impact our (visual) culture. But who knows what those will be.
- desindol 4y agoYou must have missed the last 50 years with that much fear of change. Yikes.
- omnimus 4y agoNot sure why i deserve so much toxicity. We obviously work in different fields and have different view of what art actually is. No i am not happy to jump on AI bandwagon that will surely mean even faster pace and more precarious working conditions because individuals surely wont reap the benefits of automation. It's easy to not care when you are not affected. None of that mean that i deserve the hate. It's just a different opinion.
- desindol 4y ago
- wruza 4y agoPeople are too pessimistic. If we had time travel, they’d say now someone can kill our granddads and rewrite history. If we had flying cars, they’d say now our flats are worthless because everyone can fly by and gaze. If we had universal basic income, they’d say something about it too. It’s really nice that we only got AIs that draws pictures and bitcoin that helps with stolen money.
- npteljes 4y agoTune out the news and look for a futurism themed news source[0], and you can get your techno-optimistic pipe dreams back, right now. What you describe as "we were promised" and "we got" is just you seeing a bit more of the world. It was filled with empty promises and horrors in the beforetimes too, today's flavor is nothing special - just in its specifics for today's culture. And there's also plenty of people doing great things in the past too, perhaps not promising those things, just living their life doing something they believe in, and getting results. My point being, there's enough good things and bad things to fit any mood and worldview. Everyone can basically pick as they'd like. [0] something like this https://www.reddit.com/r/Futurology/ https://www.reddit.com/r/Futurology/
- googlryas 4y agoWhat's huggingface's business model? How do they pay for all this compute and (apparently) 140+ employees?
- w-ll 4y agoThey are building a model of what everyone else is typing into these open models.
- NoToP 4y agoAren't we all?
- bee_rider 4y agoI did see a couple people in the reddit posted here https://news.ycombinator.com/item?id=32634139 https://news.ycombinator.com/item?id=32634139 complaining about the price of getting their images done. So part of it may actually exchanging money for a service. I bet a good chunk of it is investor cash though.
- tmabraham 4y agoHuggingFace is a company that mainly builds open-source libraries and platforms to support open-source ML projects. They started out with their famous Transformers library and have many other libraries including the diffusion model one that is actually what this application here is using. They also have this model/dataset hub and interactive application platform known as "Spaces". Their goal is to be the "GitHub of machine learning". Their business model is basically supporting enterprise and private use-cases. For example, getting expert support for using these libraries, or hosting models and datasets privately. You can see more information about the pricing here: https://huggingface.co/pricing https://huggingface.co/pricing They reached a $2 billion valuation after a recent round of funding so overall they're probably pretty flush with cash lol
- cout 4y agoWhy does the button say "diffuse the f rest"? What is the f for?
- aabbcc1241 4y agoI though it is a joke when seeing the random pixels. Try again after seeing this post made into front page, it's actually working (and relatively very fast), just the loading screen is misleading ...
- ctdonath 4y agoI keep providing drawings, and it mostly just produces other drawings. Thought it was to fill in content accordingly. What am I missing?
- 1jubril 4y ago
- 1jubril 4y ago
- arhankb 4y agoportal in the distance on a wheat field
- frozencell 4y agoWhat are your best prompts so far?
- smcameron 4y agoI typed in "space nerds in space fighting the zarkons", And it gave me a picture that looked similar to NASA's astronaut group photos, with 3 astronauts, 2 human, and one 3-eyed ninja-turtle looking alien in a spacesuit. Behind them was a space scene with a huge, earthlike planet. The faces of the two human astronauts looked eerily similar to the face of a friend of mine, a friend who happens to be the 2nd most prolific contributer of code to my open source game called "Space Nerds in Space". One of the human astronauts was bald, the other had a mullet, and the long portion of their hair was not entirely unlike my own hair.
- polymax 4y ago
- hirundo 4y ago"john wayne as captain america" is spot on. It has so many images of both to work with.
- rootw0rm 4y agoi tried "john wayne was a nazi" but was left disappointed
- croes 4y agoHave you tried "as a Nazi"?
- Rebelgecko 4y agoWhy were you disappointed? I haven't tried that with img2img, but as just a regular text prompt without any fancy prompt engineering I get results in line with what I'd expect (kind of a Hugo Boss/Cowboy crossover, e.g. this: https://imgur.com/a/gcKi3WG https://imgur.com/a/gcKi3WG)
- Gigachad 4y agoLooks pretty hard to get it to run. Queue full every time.
- fragmede 4y agoSkip the queue and run the colab version instead: https://www.youtube.com/watch?v=Xur1JeRjjOI https://www.youtube.com/watch?v=Xur1JeRjjOI
- bfirsh 4y agoYou can also run it on Replicate without a queue: https://replicate.com/stability-ai/stable-diffusion https://replicate.com/stability-ai/stable-diffusion (set “init_image”)
- supermatt 4y agoIt is super easy to install and use locally: clone repo, create conda env, run. there are a number of forks and auxilliary repos available that add UI, reduce memory requirements, etc.
- mmh0000 4y agoWell. Apparently "penis on park bench" is an "inappropriate" query. However, "lot of child dying in a massive fire" is an a-okay query with some "interesting" results. Prudes are such a weird bunch.
- omginternets 4y agoI’m not gonna lie, I’m quite disappointed at all the anti-NSFW shenanigans.
- idiotsecant 4y agoThe NSFW thing is just a fig leaf though, it's trivial to disable if you run it locally and it annoys you.
- epups 4y agoHowever, it looks like the model wasn't trained on NSFW keywords anyway, which means it is permanently impaired in that regard.
- Hard_Space 4y agoIt was trained on LAION 5b, which is chock-full of NSFW material. Search for yourself: https://rom1504.github.io/clip-retrieval/ https://rom1504.github.io/clip-retrieval/
- epups 4y agoThey filtered a lot of it out, it is a subset of LAION 5b according to undisclosed parameters: https://stability.ai/blog/stable-diffusion-announcement https://stability.ai/blog/stable-diffusion-announcement
- cm2012 4y agoIf you don't have anti-NSFW stuff your service will generate 95% porn as users who want it flock to you. No one wants a reputation as the porn AI (although I'm sure it will exist eventually).
- bilsbie 4y agoWhat is it?
- mpaepper 4y agoTo understand the more technical aspects of how it works: https://www.paepper.com/blog/posts/how-and-why-stable-diffusion-works-for-text-to-image-generation/ https://www.paepper.com/blog/posts/how-and-why-stable-diffus...
- simonw 4y agoYou may find my blog entry useful: https://simonwillison.net/2022/Aug/29/stable-diffusion/ https://simonwillison.net/2022/Aug/29/stable-diffusion/
- comex 4y agoIf you have a GPU with >4GB of VRAM and you want to run this locally, here's a fork of the Stable Diffusion repo with a convenient web UI: https://github.com/hlky/stable-diffusion https://github.com/hlky/stable-diffusion It supports both txt2img and img2img. (Not affiliated.) Edit: Incidentally, I tried running it on a CPU. It is possible, but it took 3 minutes instead of 10 seconds to produce an image. It also required me to hack up the script in a really gross way. Perhaps there is a script somewhere that properly supports this.
- nickthegreek 4y agoGot this working on my 8gb 3070. 7-8s per image with default settings. Thanks for posting this!
- acidburnNSA 4y agoJust tried it on Ubuntu 22.04. And it's working! Had to install python-is-python3 and conda, but it's up now. Fun, thanks.
- TuringTest 4y agoHow do you set up the model? Instructions only say "Download the model checkpoint. (e.g. from huggingface)", but I can't find instructions there on how to find a ckpt file, nor exactly what file should I look for.
- nilsb 4y agoYou'll need this file: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/blob/main/sd-v1-4.ckpt https://huggingface.co/CompVis/stable-diffusion-v-1-4-origin... - Before you can download it you have to accept the T&C at https://huggingface.co/CompVis/stable-diffusion-v-1-4-original https://huggingface.co/CompVis/stable-diffusion-v-1-4-origin...
- nickthegreek 4y agoThank you, this saved me a lot of frustration.
- frozencell 4y agoIs there a tutorial on how to run this on Paperspace?
- simonw 4y agoYou can also try it out on Replicate: https://replicate.com/stability-ai/stable-diffusion https://replicate.com/stability-ai/stable-diffusion
- bfirsh 4y agoHere's an example of doing img2img: https://replicate.com/stability-ai/stable-diffusion?prediction=sqyie5bdmrewdoxi6ehhxlesfe https://replicate.com/stability-ai/stable-diffusion?predicti...
- gyuopy 4y agoNote that it eventually asks for your credit card, it's not indefinitely free like the linked site.
- joshuahedlund 4y agoSome amazing examples of what people have done with img2img with Stable Diffusion: https://old.reddit.com/r/StableDiffusion/comments/wy7oa5/img2img_is_just_unreal_im_stunned/ https://old.reddit.com/r/StableDiffusion/comments/wy7oa5/img... https://old.reddit.com/r/StableDiffusion/comments/wyq04v/using_img2img_to_upgrade_my_sons_artwork/ https://old.reddit.com/r/StableDiffusion/comments/wyq04v/usi... https://old.reddit.com/r/StableDiffusion/comments/wzlmty/its_some_kind_of_black_magic_i_swear/ https://old.reddit.com/r/StableDiffusion/comments/wzlmty/its...
- Kiro 4y agoold.reddit is truly horrible on mobile. Once you click on an image you can't go back. Off topic, but what is the other alternative UI called that people sometimes use?
- emrah 4y agoIf i ran the same input image several times, would it produce the same output?
- supermatt 4y agoif you use the same parameters (e.g. image, seed, noise strength, guidance scale, sample count - which are not exposed on this UI), yes.
- fire 4y agoSeems like if you draw something and hit start, but get the queue error, you lose the image prompt you drew as the frame is replaced with the first steps of diffusion noise? None of the results have a composition anywhere close to my image prompt, presumably because I can't get a run on first attempt.
- natch 4y agoI guess documentation and clarity of UX design are not big strengths of Hugging Face.
- supermatt 4y agoits like github pages - the repo owner is responsible for the UI: https://huggingface.co/spaces/huggingface/diffuse-the-rest/tree/main https://huggingface.co/spaces/huggingface/diffuse-the-rest/t...
- salawat 4y agoThey haven't built the ML model for that due to paucity of training data.
- hakuseki 4y agoI'm not quite grasping how to use this. I tried uploading a photograph and erasing part of it. But instead of painting in the erased portion, it left the erased area blank and replaced my photograph with an entirely new image.
- desindol 4y agoWhat you tried is called inpainting. Img2Img needs a rough sketch.
- astrange 4y agoIf you upload an image with 2:1 aspect ratio it squishes it to 1:1 instead of letting you crop it. Seems like a basic thing they could add.
- ShamelessC 4y agoI bet you could add it yourself, or at least comment on it on the GitHub.
- astrange 4y agoYeah, I just didn't know if that control was part of this project or a standard part of the website.
- supermatt 4y agoNOTE: for some reason this is NOT using huggingface for inference, resulting in huge queues, slow performance, etc. It is sending requests to https://sdb.pcuenca.net/i2i https://sdb.pcuenca.net/i2i (https://huggingface.co/spaces/huggingface/diffuse-the-rest/blob/main/src/routes/%2Bpage.svelte https://huggingface.co/spaces/huggingface/diffuse-the-rest/b...)
- avocado2 4y agoweb demo for stable diffusion (txt2img): https://huggingface.co/spaces/stabilityai/stable-diffusion https://huggingface.co/spaces/stabilityai/stable-diffusion github with gui: https://github.com/hlky/stable-diffusion https://github.com/hlky/stable-diffusion dev repo (more features, may have bugs): https://github.com/hlky/stable-diffusion-webui https://github.com/hlky/stable-diffusion-webui repo with docker: https://github.com/AbdBarho/stable-diffusion-webui-docker https://github.com/AbdBarho/stable-diffusion-webui-docker colab repo (new): https://github.com/altryne/sd-webui-colab https://github.com/altryne/sd-webui-colab can also run it in colab (includes img2img): https://colab.research.google.com/drive/1NfgqublyT_MWtR5CsmrgmdnkWiijF3P3?usp=sharing https://colab.research.google.com/drive/1NfgqublyT_MWtR5Csmr... demo made with gradio: https://github.com/gradio-app/gradio https://github.com/gradio-app/gradio
- altryne1 4y agoI'm one of the maintainers (in charge of the UI) for hlky webui repo! And we just updated our own colab, you can find it here : https://github.com/altryne/sd-webui-colab https://github.com/altryne/sd-webui-colab
- do_anh_tu 4y agoHuge respect! Your colab file run perfectly, I’m using it for a few hours now, very addictive.
- deleted 4y ago[deleted]
- qwertox 4y agoI've been trying to get some sensible images out of my descriptions, but I fail miserably. In this case I had the prompt "cow chewing bone" with 4 squares representing the two pair of feet, the body and the head. None cared about chewing on a bone. With DALL·E 2 I tried to get an image of a little girl building sandcastles and a monster threatening her: "little scared girl building a sandcastle and a big angry monster is looking at her." "little scared girl building a sandcastle six damaged sandcastles are to her side. a big angry monster is threatening her. it is dark." https://imgur.com/a/f5FFKOi https://imgur.com/a/f5FFKOi "little scared girl building a sandcastle with six damaged sandcastles to her side and a big angry monster threatening her" Is there some kind of structure the sentences should follow?
- Marazan 4y agoDalle is bad at being instructed to have an exact count of items in the picture. Ask for 6 kittens and you get 7 & each kitten will be much more "wrong" than a piture of a single kitten. Dalle is is bad at positional prompts. Ask for somethi g to be in the top rightbhand corner and it will appear bottom centre
- bemmu 4y agoI managed to get one that was correct with "A little scared girl is building a sandcastle, while a monster is looking at her. Award-winning photograph.", but I couldn't figure out a phrasing where it wouldn't most of the time get confused thinking that the sandcastle is the monster, or that the girl is the monster.
- BatteryMountain 4y agoYes, checkout examples on lexica or use a prompt builder to help, like promptmania. Also, most of the good ones you see online are cherry picked from hundreds of runs, so set your batch size too 1000 and go to bed! After that, people then tend to run some of the good results through img2img, also with a lot of variations produced from a single image. Finally, some people also run them at higher resolutions if they have enough VRAM, as smaller resolution can distort or generate rubbish. For the messed up faces, they run it through gfpgan a few times to get prettier faces. Other than that, it is pure luck (using random seeds) to figure out what works and what doesn't. Use the 2 sites above to help you improve your prompts. (meant in the context of stable diffusion)
- freeqaz 4y agoI've been playing with this for a few hours. It's slow going -- you really need a fast GPU with a lot of RAM to make this very usable. I ended up paying the $10 for Google Colab Pro and that's how I've been using this. Maybe I'll figure out how to get this working on my old 1080 TI to see if it's faster. Anyway, for the one that I'm using which has a web UI, you can use this Colab link. It's pretty great! https://colab.research.google.com/drive/1KeNq05lji7p-WDS2BL-86Z8Y9SluGng4 https://colab.research.google.com/drive/1KeNq05lji7p-WDS2BL-... What I really wish was that the img2img tool could be used to take a text2img output and then "refine" it further. As it is, the img2img tool doesn't seem particularly great. People on Reddit are talking about "I just generate 100 images and pick the best one"... but this is incredibly slow on the P100 GPU that Google has me on. Does this just require a monster GPU like a 3080/3090 in order to get any decent results?
- StevenWaterman 4y agoYou can feed a txt2img output into the img2img pipeline as an init, that's something that I do quite often, eg https://twitter.com/SteWaterman/status/1563872748161613826 https://twitter.com/SteWaterman/status/1563872748161613826 Also how slow is your p100? I'm usually getting around 3 it/s. Maybe it's just because I'm used to disco diffusion where a single image took over an hour, but this is ungodly fast to me
- ShamelessC 4y agoColab can feel slow for other reasons, such as throttled download speeds making it very slow to download weights on a cold boot.
- Jach 4y agoFWIW I'm using an old gtx 1080 Ti to play around, it takes about 21 seconds per image. You can make it go even faster by lowering the timesteps taken from the default 50 (--ddim_steps), though both lowering and raising the value can result in quite different first-iteration images (though they tend to be similar) and seems to guarantee totally different further iteration images (as counted by --n_iter)... I'm with you on the feeling that it's hard to control, whether in refinement or in other ways, but I suspect that'll get a lot better in the next couple years (if not weeks or dare I say days).
- fwsgonzo 4y agoIf I want to run Stable diffusion in C++ only? I would like to build this program statically. I have been searching on github but so far unable to find anyone having ported this.
- ThePhysicist 4y agoIt only produces colored noise for me. What am I doing wrong?
- mishig 4y agoHello, everyone I'm Mishig, one of the engineers worked on setting up the demo. Happy to answer any questions if you got some :) You can find the announcement tweet here: https://twitter.com/mishig25/status/1563226161924407298?s=20&t=xvtbPy8-dy4zqyvx70vt8A https://twitter.com/mishig25/status/1563226161924407298?s=20...
- fragmede 4y agoJust wanted to say thanks. It’s really cool!
- fareesh 4y agoIs anyone working on a variation of this where the output is a blender scene?
- namrog84 4y agoI am very interested in possibilities of generating 3d models as well. There is a fair amount of 3d models out there so it should be possible. I suspect we will end up using multiple 2d images at different angles to generate a 3d model. I have seen this done before
- coolspot 4y agohttps://github.com/NVlabs/instant-ngp https://github.com/NVlabs/instant-ngp
- bravura 4y agoIs there an interpolate mode for Stable Diffusion? (Interpolate between two images without using a text prompt.) Here are DALL-E 2 interpolations: https://twitter.com/model_mechanic/status/1512976881183645698 https://twitter.com/model_mechanic/status/151297688118364569...
- f38zf5vdt 4y agoOne of the first things that came out when the model was released. https://github.com/schmidtdominik/stablediffusion-interpolation-tools/blob/main/SD_interpolation.ipynb https://github.com/schmidtdominik/stablediffusion-interpolat...
- bravura 4y agoThank you, but this notebook appears to use images generated from text prompts. I was interested in interpolating between two given images, without generating from text.
- f38zf5vdt 4y agoYou would need to run CLIP and generate CLIP embeddings from the images first, then feed them into the samplers. If you give it the starting images and caption them yourself, then it would also work.
- kgwgk 4y agoIt's interesting that the people who write things like "look at this stream of words, they have to be coming from a sentient being" do not seem to care much about the "intelligence" generating these images.
- bethecloud 4y agoTry img to img using decentralized cloud: https://mirror.xyz/bitkevin.eth/F3cZoh630VvRKgmPzVQ3QXM5gQu_s9kd3YhW6Qt2mRc https://mirror.xyz/bitkevin.eth/F3cZoh630VvRKgmPzVQ3QXM5gQu_...
- coolspot 4y agoThe article describes how to store a picture in “decentralized” storage. You’re not running img2img in a “decentralized cloud”.