Skip to content

[Bug]: Error: 'expected str, bytes or os.PathLike object, not NoneType'. #925

@makeoo1

Description

@makeoo1

Have you read the latest version of the FAQ?

  • I have visited the FAQ page right now and my issue is not present there

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Are you using the latest version of the Deforum extension?

  • I have Deforum updated to the lastest version and I still have the issue.

What happened?

Out of nowhere i am getting this error:

image

Steps to reproduce the problem

I just ran Deforum with default's settings. I also tried without any extensions enabled.

What should have happened/how would you fix it?

.

Torch version

image

On which platform are you launching the webui with the extension?

Local PC setup (Windows)

Deforum settings

20231112175541_settings.txt

Webui core settings

ui-config.json

Console logs

venv "C:\_SD_\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements for Seed Travel
Installing pyqt5 requirement for depthmap script
Launching Web UI with arguments: --api --opt-sdp-attention --disable-nan-check --vae-path C:\_SD_\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors --cors-allow-origins=https://www.painthua.com
No module 'xformers'. Proceeding without it.
2023-11-13 02:55:38,072 - ControlNet - INFO - ControlNet v1.1.416
ControlNet preprocessor location: C:\_SD_\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-11-13 02:55:38,299 - ControlNet - INFO - ControlNet v1.1.416
Loading weights [879db523c3] from C:\_SD_\stable-diffusion-webui\models\Stable-diffusion\dreamshaper_8.safetensors
2023-11-13 02:55:40,180 - AnimateDiff - INFO - Hacking i2i-batch.
*Deforum ControlNet support: enabled*
Creating model from config: C:\_SD_\stable-diffusion-webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 18.9s (prepare environment: 8.2s, import torch: 3.0s, import gradio: 1.5s, setup paths: 0.8s, initialize shared: 0.2s, other imports: 0.8s, setup codeformer: 0.1s, list SD models: 0.1s, load scripts: 3.2s, create ui: 0.7s, gradio launch: 0.3s).
Loading VAE weights from commandline argument: C:\_SD_\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors
Applying attention optimization: sdp... done.
Model loaded in 5.0s (load weights from disk: 0.8s, create model: 0.3s, apply weights to model: 1.8s, load VAE: 1.1s, calculate empty prompt: 0.8s).
started run_deforum
times_to_run: 1
Deforum extension for auto1111 webui
Git commit: f0fb9d76
Starting job task(jegsiyc36soeqkf)-0...
Saving animation frames to:
C:\_SD_\stable-diffusion-webui\outputs\img2img-images\Deforum_20231113025548
Animation frame: 0/120
Seed: 113280399
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
Not using an init image (doing pure txt2img)
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 25  │7.0│   0   │  0  │1.0025│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|██████████████████████████████████████████████████████████████████████████████████| 25/25 [00:01<00:00, 16.21it/s]
Animation frame: 1/120  ▍                                                            | 25/1096 [00:01<00:43, 24.62it/s]
Seed: 113280400
Prompt: tiny cute bunny, vibrant diffraction, highly detailed, intricate, ultra hd, sharp photo, crepuscular rays, in focus
Neg Prompt: nsfw, nude
╭─────┬───┬───────┬─────┬──────┬──────┬──────┬────┬────╮
│Steps│CFG│Denoise│Angle│ Zoom │Tr C X│Tr C Y│Tr X│Tr Y│
├─────┼───┼───────┼─────┼──────┼──────┼──────┼────┼────┤
│ 25  │7.0│ 0.35  │  0  │1.0028│ 0.5  │ 0.5  │ 0  │ 0  │
╰─────┴───┴───────┴─────┴──────┴──────┴──────┴────┴────╯
100%|████████████████████████████████████████████████████████████████████████████████████| 9/9 [00:00<00:00, 27.69it/s]
WARNING:deforum_helpers.opts_overrider:Error during batch execution: <class 'TypeError'> - expected str, bytes or os.PathLike object, not NoneType

*START OF TRACEBACK*
Traceback (most recent call last):
  File "C:\_SD_\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum_helpers\run_deforum.py", line 116, in run_deforum
    render_animation(args, anim_args, video_args, parseq_args, loop_args, controlnet_args, root)
  File "C:\_SD_\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum_helpers\render.py", line 577, in render_animation
    image = generate(args, keys, anim_args, loop_args, controlnet_args, root, parseq_adapter, frame_idx, sampler_name=scheduled_sampler_name)
  File "C:\_SD_\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum_helpers\generate.py", line 78, in generate
    return generate_inner(args, keys, anim_args, loop_args, controlnet_args, root, parseq_adapter, frame, sampler_name)
  File "C:\_SD_\stable-diffusion-webui\extensions\deforum-for-automatic1111-webui\scripts\deforum_helpers\generate.py", line 283, in generate_inner
    processed = processing.process_images(p)
  File "C:\_SD_\stable-diffusion-webui\modules\processing.py", line 732, in process_images
    res = process_images_inner(p)
  File "C:\_SD_\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 42, in processing_process_images_hijack
    return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
  File "C:\_SD_\stable-diffusion-webui\modules\processing.py", line 976, in process_images_inner
    images.save_image(grid, p.outpath_grids, "grid", p.all_seeds[0], p.all_prompts[0], opts.grid_format, info=infotext(use_main_prompt=True), short_filename=not opts.grid_extended_filename, p=p, grid=True)
  File "C:\_SD_\stable-diffusion-webui\modules\images.py", line 613, in save_image
    path = os.path.join(path, dirname)
  File "C:\Users\M\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 104, in join
    path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
*END OF TRACEBACK*

User friendly error message:
Error: expected str, bytes or os.PathLike object, not NoneType. Please, check your schedules/ init values.
Deforum progress:   3%|█▉                                                            | 34/1096 [00:02<01:05, 16.17it/s]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions