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.
  • While we continue to work on the forum, the forum is now read only.

    Login, registration, reacting, posting are now limited.

    WE ARE NOT GOING ANYWHERE. DO NOT BELIEVE THE ANGRY REDDIT THOTS 🤣 🐀

speed0403

Lurker
Feb 27, 2023
5
0
49
0fya082315al84db03fa9bf467e3.png
Screenshot_2023-07-28-23-55-13-812_com.android.chrome200ffd696223c0cb5.md.jpg
Does anyone know why after using the collab for only 3-5 minutes my session disconnects? I run it from a phone
 

ravvv

Superfan
Jul 14, 2022
13
509
737
0fya082315al84db03fa9bf467e3.png
Does anybody have advice on which models and samplers are most effective with inpainting?
 
  • Like
Reactions: BIPSON

oppaixlove

Fan
Oct 24, 2022
16
54
139
0fya082315al84db03fa9bf467e3.png
hmm loras arent loading..

Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. *** Error loading script: lora_script.py Traceback (most recent call last):

not sure how to fix that
 
  • Like
Reactions: dfhjcxxcghnvcx
Nov 13, 2022
3
0
61
0fya082315al84db03fa9bf467e3.png
Getting this error, anyone know how to fix:

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.
Time taken: 2.0 sec.
 

xvideos

Lurker
Mar 13, 2022
1
13
313
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
The error message you're receiving indicates that your U-net model produced a tensor containing only NaN (Not a Number) values. This might be caused by insufficient precision to represent the input image or incompatibility of your GPU with half-precision computations (float16).

Here's how you might go about fixing this:
  1. Increase Precision: As suggested in the error message, you can try increasing the precision of the computation to float32. This might be done through a setting in the software you're using, or by passing a command line argument like --no-half if you're running a command-line-based tool.
  2. Upcast Cross Attention Layer to Float32: Another possible solution could be upcasting the cross attention layer to float32. This option might be located in Settings under Stable Diffusion, depending on the software you're using.
  3. Disable NaN Check: If you wish to bypass this error for some reason (perhaps for debugging), you might disable the NaN check by using the --disable-nan-check command-line argument. However, please note that this could potentially lead to further issues if NaN values are indeed being produced, and should probably only be used as a temporary measure while diagnosing the problem.
Not all GPUs handle float16 operations efficiently. You might consider checking if your GPU supports half-precision computations, and possibly upgrade your GPU if it does not.

Also getting NaN values might also be a symptom of a problem with your model or data, such as exploding gradients.

exploding gradients are a problem in deep learning where the gradient becomes too large and causes updates to be far too large. This is common in recurrent neural networks (RNNs), and especially in long short-term memory networks (LSTMs), due to the accumulation of gradients in the backward pass through time.

Ways to tackle exploding gradients:
  1. Gradient Clipping: This is a technique where the gradients are artificially capped at a maximum value during backpropagation. The gradients thus cannot exceed this value and explode. This is a common approach used in training RNNs.
  2. Use of Activation Functions: Some activation functions like ReLU and its variants (like Leaky ReLU) can help in controlling the magnitude of the activations and thus the gradients.
  3. Proper Weight Initialization: Using methods like He initialization or Xavier initialization can help prevent the gradients from becoming too large.
  4. Use of Batch Normalization: Batch normalization can not only help in faster training but also control the range of the output values of neurons, which can indirectly control the gradients.
  5. Use of Regularization: Regularization methods like L1 or L2 can help in controlling the magnitude of the weights and thus control the gradients.
 

landl0rd

Casual
Nov 27, 2022
6
49
228
0fya082315al84db03fa9bf467e3.png
Hey I'm getting this error when launching the first cell today:

*** Error running install.py for extension /content/sdw/extensions/canvas-zoom. *** Command: "/usr/bin/python3" "/content/sdw/extensions/canvas-zoom/install.py" *** Error code: 1 *** stderr: Traceback (most recent call last): *** File "/content/sdw/extensions/canvas-zoom/install.py", line 4, in <module> *** import gradio *** File "/usr/local/lib/python3.10/dist-packages/gradio/__init__.py", line 3, in <module> *** import gradio.components as components *** File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 32, in <module> *** from fastapi import UploadFile *** File "/usr/local/lib/python3.10/dist-packages/fastapi/__init__.py", line 7, in <module> *** from .applications import FastAPI as FastAPI *** File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 15, in <module> *** from fastapi import routing *** File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 22, in <module> *** from fastapi import params *** File "/usr/local/lib/python3.10/dist-packages/fastapi/params.py", line 4, in <module> *** from pydantic.fields import FieldInfo, Undefined
*** ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/usr/local/lib/python3.10/dist-packages/pydantic/fields.py) Launching Web UI with arguments: --enable-insecure-extension-access --opt-sdp-attention --share --no-half-vae --disable-safe-unpickle --no-hashing --gradio-queue --ckpt /content/sdw/models/Stable-diffusion//nullModelzeros.ckpt Traceback (most recent call last): File "/content/sdw/launch.py", line 39, in <module> main() File "/content/sdw/launch.py", line 35, in main start() File "/content/sdw/modules/launch_utils.py", line 390, in start import webui File "/content/sdw/webui.py", line 14, in <module> from fastapi import FastAPI File "/usr/local/lib/python3.10/dist-packages/fastapi/__init__.py", line 7, in <module> from .applications import FastAPI as FastAPI File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 15, in <module> from fastapi import routing File "/usr/local/lib/python3.10/dist-packages/fastapi/routing.py", line 22, in <module> from fastapi import params File "/usr/local/lib/python3.10/dist-packages/fastapi/params.py", line 4, in <module> from pydantic.fields import FieldInfo, Undefined ImportError: cannot import name 'Undefined' from 'pydantic.fields' (/usr/local/lib/python3.10/dist-packages/pydantic/fields.py)

It's been working fine for me up until now though... any ideas? Thanks! :)
 

luamoonzie

Lurker
Dec 1, 2022
1
0
46
0fya082315al84db03fa9bf467e3.png
I'm getting a blue "you've been running this colab for 00:00:54" message after I try to start for the first time. I really don't know what to do
 

bickaroo48

Tier 1 Sub
Mar 24, 2022
82
144
169
0fya082315al84db03fa9bf467e3.png
when i go to start inpainting, the image starts to flicker and i cant drag the paintbrush just dots. any thoughts?
 

bickaroo48

Tier 1 Sub
Mar 24, 2022
82
144
169
0fya082315al84db03fa9bf467e3.png
Please, Log in or Register to view quotes
im still having the problem and ive tried everything i could think of even switching browsers. I also would like to point out that the second link (public url) has never worked for me...the only thing that has worked in the past is using the first link..could this be the problem?

Screenshot-2023-08-11-at-10.04.53-PM2b7cf004ce488a3d.md.png