Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
makeoo1 opened this issue Nov 13, 2023 · 7 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@makeoo1
Copy link

makeoo1 commented Nov 13, 2023

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

@makeoo1 makeoo1 added the bug Something isn't working label Nov 13, 2023
@makeoo1
Copy link
Author

makeoo1 commented Dec 10, 2023

?

@kuzman123
Copy link

kuzman123 commented Feb 10, 2024

  1. Try to move resolution sliders - just change values using sliders (i've got similar error and that helped)
  2. Depth warping can cause issues also, for some unknown-blackMagic reason - try to disable it.
  3. Try 2D, 3D...4. I would try to load some old config to see what is happening.

@makeoo1
Copy link
Author

makeoo1 commented Feb 10, 2024

hey thx!

just tried, nothing worked sadly. Same error.

its been in this status since months and it seems i can't find no way to fix it.... i literally tired everything from updating, reinstalling, downgrading... you name it ....

@kuzman123
Copy link

auto1111? Try Vlad automatic, i bet it will work

@makeoo1
Copy link
Author

makeoo1 commented Feb 11, 2024

yes dude A1111.

i can give it a try but i doubt it will work since i belive it's Deforum the problem, i was using it regularly without any problems and then one day this happend out of nowhere and apparently there is no solution to be found....

@NthKevkas
Copy link

NthKevkas commented Feb 14, 2024

I'm also experiencing this error. I have tried to enable and disable all possible init types, as I'm just trying to use full txt2img. I have updated to the latest and tried it a few times and can never get past my first frame. I am also running A1111.

@xiaolou1115
Copy link

I encountered the same error and tried various methods but couldn't fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants