Guide Inpainting/Nudifying for everyone! (Fast, Simple, and Easy)

  • Welcome to the Fakes / AI / Deepfakes category
    When posting AI generated content please include prompts used where possible.

Phimae95

Bathwater Drinker
Mar 17, 2022
40
1,319
1,242
0fya082315al84db03fa9bf467e3.png
i keep getting the not enough gpu memory error, my gpu is 6650xt OC with 8gb vram. can someone tell me what to do?
 

dreamfrost75

Lurker
May 11, 2023
2
0
49
0fya082315al84db03fa9bf467e3.png
Error completing request
Arguments: ('task(pwimpti7oeod1xd)', 2, 'A RAW Photo of a ((nude)) woman, HD, perfect, perky boobs, high quality, detailed pussy, innie, perfect pussy, bright pussy, shaved pussy, no pubes, pale, (small nipples), (small areola)', 'extra nipples, deformed body, (((deformed breast))), (((mutated breast))), deformed pussy, deformed nipples, low quality, medium quality, extra fingers, missing fingers, mutated fingers, (((clothes))), (((underwear))), lingerie, (((clothing))), (((cloth))), missing nipples, missing breasts, extra breasts, missing arms, cgi, airbrush, cartoon, unequal boob size, oversized vagina, piercings, unnatural nipples, pussy hair, (((pubes))), smooth skin, dark nipples, gaussian, blur, blurry, (((hair))), (((hairs)))', [], None, None, {'image': <PIL.Image.Image image mode=RGBA size=3024x4032 at 0x7F916E1004F0>, 'mask': <PIL.PngImagePlugin.PngImageFile image mode=RGBA size=3024x4032 at 0x7F916FAE5630>}, None, None, None, None, 100, 15, 4, 0, 1, False, False, 1, 3, 6.5, 1.5, 1, -1.0, -1.0, 0, 0, 0, False, 560, 560, 0, 1, 32, 0, '', '', '', [], 0, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', 0, '', 0, '', True, False, False, False, 0) {}
Traceback (most recent call last):
File "/content/sdw/modules/call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "/content/sdw/modules/call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "/content/sdw/modules/img2img.py", line 171, in img2img
processed = process_images(p)
File "/content/sdw/modules/processing.py", line 486, in process_images
res = process_images_inner(p)
File "/content/sdw/modules/processing.py", line 577, in process_images_inner
p.init(p.all_prompts, p.all_seeds, p.all_subseeds)
File "/content/sdw/modules/processing.py", line 959, in init
mask = mask.crop(crop_region)
File "/usr/local/lib/python3.10/dist-packages/PIL/Image.py", line 1228, in crop
raise ValueError(msg)
ValueError: Coordinate 'right' is less than 'left'

how to fix it?
it happened when i generate images
btw i didnt change the promp and negative promp..
 

hammerfaust

Lurker
Oct 23, 2022
1
0
46
0fya082315al84db03fa9bf467e3.png
How do I include Textual Inversions?
I want to generate pics of celebs and some have no Loras only Textual Inversion.
Awesome guide! Keep it up and thanks!
 

henryderik93

Lurker
Sep 23, 2022
5
2
58
0fya082315al84db03fa9bf467e3.png
Hey, Does someone knows how to remove see through clothes and keep the original content that appear through it?
Inpaint techniques i've seen just swap the details behind the clothes by something generated. What I want is to keep the original content that already is visible through the clothes.
Ex:
Please, Log in or Register to see links and images
 

dreamfrost75

Lurker
May 11, 2023
2
0
49
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes

aft i did mask and generate, this error pop up
how to fix it?

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 254, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 273, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 122, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 149, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/gzip.py", line 26, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.10/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 341, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 82, in app
await func(session)
File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 289, in app
await dependant.call(**values)
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 436, in join_queue
session_info = await websocket.receive_json()
File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 133, in receive_json
self._raise_on_disconnect(message)
File "/usr/local/lib/python3.10/dist-packages/starlette/websockets.py", line 105, in _raise_on_disconnect
raise WebSocketDisconnect(message["code"])
starlette.websockets.WebSocketDisconnect: 1001
 

playb0ybunny

Bathwater Drinker
Jan 30, 2023
128
2,835
1,252
0fya082315al84db03fa9bf467e3.png
Can you create a promt, for normal female breasts? I don't like Perky Boobs, it doesn't look natural (like anime, which I don't like)
Can you come up with some kind of alternative promt?
I could do it myself, but I'm not very good at it.
 

hulio8888

Tier 3 Sub
Mar 12, 2022
39
398
739
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
Yes, edit the code provided by Bigelelya

elif select_model == "PerfectDeliberate":
print(f"Downloading PerfectDeliberate")
gdown.download(url="https://civitai.com/api/download/models/67569?type=Model&format=SafeTensor&size=full&fp=fp32", output=f"{modelpath}/perfectdeliberate_v30.safetensors", quiet=False, fuzzy=True)

For exampe, simply change Models name, direct (!) downloadlink and the name of the file of collabs PCs harddrive. Just look at the code and you should see what I mean, Formatting looks a little off in this forum but it's nice and tidy once you're inside collab.
After that you don't need to forget to add your new model to the "Names"list of the provided Dropdown menu otherwise you cant chose it.
Said line is pretty high up and starts with "select_model = ". Simply add yours (, "PerfectDeliberate" in my given example) and you have another model to choose from.
Same goes with Loras
 
  • Like
Reactions: bigelelya

mcicybro

Lurker
Mar 12, 2022
8
2
58
0fya082315al84db03fa9bf467e3.png
If I follow the guide right now (except for the stable_build part) it works fine (page loads) until I try to inpaint anything and it gives me the following error:

NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.

I used a picture that worked just fine yesterday. I tried the suggested change in Settings but still get the same error.

EDIT: I'm a dummy and forgot to change the model. I only had to do that once last time, but now it reset and I didn't notice.
 
Last edited:

bigelelya

People Observer
Nov 17, 2022
365
6,577
1,318
  • Like
Reactions: mcicybro

2uBi

Ryeji Simp
Apr 17, 2023
282
8,017
1,308
0fya082315al84db03fa9bf467e3.png
"/content/sdw
python3: can't open file '/content/sdw/launch.py': [Errno 2] No such file or directory"

Ahh, help. i followed the steps right.
NVM.

Another prob. i can't access public link.

To create a public link, set `share=True` in `launch()`.
Startup time: 20.7s (import torch: 7.4s, import gradio: 1.1s, import ldm: 2.9s, other imports: 5.3s, setup codeformer: 0.2s, load scripts: 2.1s, create ui: 1.5s, gradio launch: 0.2s).
Downloading pytorch_model.bin: 100% 1.71G/1.71G [00:12<00:00, 134MB/s]
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(21): Bad Artist Anime, Bad Artist OG, Bad Image v1, Bad Image v2, Bad Image v4, Bad Prompt v1, Bad Prompt v2, bad-artist, bad-hands-3, bad-hands-5, bad-image, bad-image-9600, bad-image-v2-11000, bad-image-v2-27000, bad-image-v2-39000, bad_prompt_version2, bad_quality, Deep Negative v1.75T, EasyNegative, negprompt5, vile_prompt3
Textual inversion embeddings skipped(6): NegLowRes-2400, Low Resolution Fix MedStep by tolerantpancake, Low Resolution Fix LowStep by tolerantpancake, Low Resolution Fix VLowStep by tolerantpancake, Low Resolution Fix VHighStep by tolerantpancake, Low Resolution Fix HighStep by tolerantpancake
Model loaded in 21.8s (create model: 17.9s, apply half(): 2.6s, move model to device: 0.9s, load textual inversion embeddings: 0.2s).
 
Last edited: