Skip to content

FAQ & Troubleshooting

kabachuha edited this page May 1, 2023 · 45 revisions

My output imgs look completely different to each other, like it's doing pure txt2img and not img2img

Go to your webui settings --> look for this setting, and make sure it's not checked:
image

My videos look like a mess when I upload them to social media platforms. What to do?

The social media platforms are compressing the uploaded videos, so if you upload one (at low res), it will be compressed even further resulting in the unrecognizable goo. To prevent it, please upscale the videos at least 'x2' in the Output tab before posting anywhere except for Discord.

3D animation mode is not working. Only 2D works

If you got the AttributeError: 'NoneType' object has no attribute 'get', it means that one of the 3D model files is either missing, or downloaded only partially. The fix is to manually download the models again, and putting both of them in the /models/Deforum folder.
Download AdaBins_nyu.pt from here
Download dpt_large-midas-2f21e586.pt from here

Preview window is stuck/ not being updated during animation generation

This is a known issue with no known fix as of January 19th 2023. Please wait for a fix. Issue can be tracked Fixed with an update of the core auto. If you have the issue, upgrade your webui.

I'm getting a JSONDecodeError: Expecting ',' delimiter error

You have a missing comma (,) after one of your prompts. Make sure all of the prompts EXCEPT for the last one have a trailing comma after them.
Should look like this:
{"0": "Cool prompt at frame 0","60": "Cool prompt at frame 60","80": "Cool prompt at frame 80","100": "Cool prompt at frame 100"}
and NOT like this (note the missing comma after the second prompt):
{"0": "Cool prompt at frame 0","60": "Cool prompt at frame 60" "80": "Cool prompt at frame 80","100": "Cool prompt at frame 100"}

Where is the "Hires. fix"? Is there one? Did you remove it? Why?

There was a button that at most, fixed the very first frame of the animation. The way highres fix works is not really suitable for keeping coherency in animation, sadly. You can always batch-upscale after your deforum run in webui's 'extra' --> 'batch' tab. Or better use Deforum's internal upscalers in the Output tab.

My animation becomes blurry over time and loses details

There are two main ways of fixing it: either lowering the strength schedule or heightening the noise multiplier schedule.

These values are a good rule of thumb, but be cautious when mixing them together

  • Strength schedule: 0:(0.25 * cos((72 / 60 * 3.141 * (t + 0) / 30))**13 + 0.7)

Screenshot 2023-05-01 at 18-59-42 framesync xyz

  • Noise multiplier: 0: (1.07-(abs(sin(2*3.14*t/5+0))*0.02))

bJKNQBm

My animation gains a too sharpened look, quickly

Lower Anti-Blur's amount_schedule or noise multiplier schedule if you have it enabled.

Deforum crashes with KeyError after I press 'Generate'. It seems it is related to the keyframes you added recently.

  File "/home/kabachuha/kml/kek/stable-diffusion-webui/extensions/deforum/scripts/deforum_helpers/animation_key_frames.py", line 9, in __init__
    self.angle_series = get_inbetweens(parse_key_frames(anim_args.angle), anim_args.max_frames)
  File "/home/kabachuha/kml/kek/stable-diffusion-webui/extensions/deforum/scripts/deforum_helpers/animation_key_frames.py", line 79, in get_inbetweens
    key_frame_series[0] = key_frame_series[key_frame_series.first_valid_index()]
  File "/home/kabachuha/.local/lib/python3.8/site-packages/pandas/core/series.py", line 982, in __getitem__
    return self._get_value(key)
  File "/home/kabachuha/.local/lib/python3.8/site-packages/pandas/core/series.py", line 1092, in _get_value
    loc = self.index.get_loc(label)
  File "/home/kabachuha/.local/lib/python3.8/site-packages/pandas/core/indexes/range.py", line 396, in get_loc
    raise KeyError(key)
KeyError: None

Go to webui's core folder and remove ui-config.json. This action will clear the cache and it often solves this issue (especially if no one else seems to have it, as each other's cache forms in a different way)

I have 'Permission denied error' when loading .pt files on Windows, like this

File "C:\Users\kabachuha\stable-diffusion-webui\venv\lib\site-packages\torch\serialization.py", line 997, in load_tensor
    storage = zip_file.get_storage_from_record(name, numel, torch._UntypedStorage).storage()._untyped()
PermissionError: [Errno 13] Permission denied

Go to your models folder, it's usually located at '\stable-diffusion-webui\models\Stable-diffusion', select the problematic file and right click it, open Properties. You'll probably see in the bottom something like this Warning: This file has been received from an another computer and was locked to protect the computer - [] Unlock. Click 'Unlock'. The message will disappear and the weights should load fine after that. You may need to restart the webui to clear the cache.

cannot import name 'X' from 'scripts'

  File "/home/kabachuha/kml/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/xyz_grid_support.py", line 2, in <module>
    from scripts import controlnet
ImportError: cannot import name 'controlnet' from 'scripts' (/home/kabachuha/.local/lib/python3.8/site-packages/scripts/__init__.py)

Ensure, that you don't have a python package named scripts 🙃

Clone this wiki locally