continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.05k stars 253 forks source link

[Bug]:[程序异常退出,退出代码为 3 (0x00000003)] #516

Open jiandamplus opened 5 months ago

jiandamplus commented 5 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

[How to Fix]

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

[程序异常退出,退出代码为 3 (0x00000003)]

Commit where the problem happens

webui: 版本: v1.9.3  •  python: 3.10.11  •  torch: 2.1.2+cu118  •  xformers: 0.0.23.post1+cu118  •  gradio: 3.41.2  •  checkpoint: 54ef3e3610 extension:

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Launching Web UI with arguments: --medvram-sdxl --theme dark --xformers --no-half-vae --api --autolaunch
Civitai Helper: Root Path is: D:\AIGC\sd-webui-aki-v4.6.1
Civitai Helper: Get Custom Model Folder
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
[-] ADetailer initialized. version: 24.4.2, num models: 10
[AddNet] Updating model hashes...
[AddNet] Updating model hashes...
ControlNet preprocessor location: D:\AIGC\sd-webui-aki-v4.6.1\extensions\sd-webui-controlnet\annotator\downloads
*** Error loading script: controlmodel_instant_id.py
    Traceback (most recent call last):
      File "D:\AIGC\sd-webui-aki-v4.6.1\modules\scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\AIGC\sd-webui-aki-v4.6.1\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\AIGC\sd-webui-aki-v4.6.1\extensions\sd-webui-controlnet\scripts\controlmodel_instant_id.py", line 5, in <module>
        from scripts.controlmodel_ipadapter import ImageEmbed
    ModuleNotFoundError: No module named 'scripts.controlmodel_ipadapter'

---
2024-04-25 10:48:23,407 - ControlNet - INFO - ControlNet v1.1.445
2024-04-25 10:48:23,698 - ControlNet - INFO - ControlNet v1.1.445
*** Error loading script: lora_block_weight.py
    Traceback (most recent call last):
      File "D:\AIGC\sd-webui-aki-v4.6.1\modules\scripts.py", line 508, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\AIGC\sd-webui-aki-v4.6.1\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\AIGC\sd-webui-aki-v4.6.1\extensions\sd-webui-lora-block-weight\scripts\lora_block_weight.py", line 30, in <module>
        ui_config = json.load(json_file)
      File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\__init__.py", line 293, in load
        return loads(fp.read(),
      File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\__init__.py", line 346, in loads
        return _default_decoder.decode(s)
      File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\decoder.py", line 355, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 4798 column 36 (char 287647)

---
sd-webui-prompt-all-in-one background API service started successfully.
[ControlNet-Travel] extension Mikubill/sd-webui-controlnet found, ControlNet-Travel loaded :)
Loading weights [54ef3e3610] from D:\AIGC\sd-webui-aki-v4.6.1\models\Stable-diffusion\二次元大模型\SD1.5\meinamix_meinaV11.safetensors
Creating model from config: D:\AIGC\sd-webui-aki-v4.6.1\configs\v1-inference.yaml
2024-04-25 10:48:27,589 - ControlNet - INFO - ControlNet UI callback registered.
loading settings: JSONDecodeError
Traceback (most recent call last):
  File "D:\AIGC\sd-webui-aki-v4.6.1\modules\ui_loadsave.py", line 29, in __init__
    self.ui_settings = self.read_from_file()
  File "D:\AIGC\sd-webui-aki-v4.6.1\modules\ui_loadsave.py", line 143, in read_from_file
    return json.load(file)
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 4798 column 36 (char 287647)

Civitai Helper: Settings:
Civitai Helper: max_size_preview: True
Civitai Helper: skip_nsfw_preview: False
Civitai Helper: open_url_with_js: True
Civitai Helper: proxy: http://127.0.0.1:7890
Civitai Helper: use civitai api key: True
*Deforum ControlNet support: enabled*
Running on local URL:  http://127.0.0.1:7860

Console logs

2024-04-25 11:00:43,689 - AnimateDiff - INFO - AnimateDiff process start.
2024-04-25 11:00:43,689 - AnimateDiff - INFO - Loading motion module v3_sd15_mm.ckpt from D:\AIGC\sd-webui-aki-v4.6.1\extensions\sd-webui-animatediff\model\v3_sd15_mm.ckpt
Calculating sha256 for D:\AIGC\sd-webui-aki-v4.6.1\extensions\sd-webui-animatediff\model\v3_sd15_mm.ckpt: 2412711886f61091846f53204aabc38aa6e09356d62a9808abe4daa802168343
2024-04-25 11:00:45,879 - AnimateDiff - INFO - Guessed v3_sd15_mm.ckpt architecture: MotionModuleType.AnimateDiffV3
2024-04-25 11:00:48,495 - AnimateDiff - INFO - Injecting motion module v3_sd15_mm.ckpt into SD1.5 UNet input blocks.
2024-04-25 11:00:48,495 - AnimateDiff - INFO - Injecting motion module v3_sd15_mm.ckpt into SD1.5 UNet output blocks.
2024-04-25 11:00:48,495 - AnimateDiff - INFO - Setting DDIM alpha.
2024-04-25 11:00:48,544 - AnimateDiff - INFO - Injection finished.
2024-04-25 11:00:48,544 - AnimateDiff - INFO - AnimateDiff + ControlNet will generate 16 frames.
2024-04-25 11:00:49,862 - AnimateDiff - INFO - Randomizing init_latent according to [1.0, 0.96875, 0.9375, 0.90625, 0.875, 0.84375, 0.8125, 0.78125, 0.75, 0.71875, 0.6875, 0.65625, 0.625, 0.59375, 0.5625, 0.53125].
2024-04-25 11:00:49,957 - AnimateDiff - INFO - inner model forward hooked
Exception in thread MemMon:
Traceback (most recent call last):
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "<enhanced_experience vendors.sentry_sdk.integrations.threading>", line 72, in run
  File "<enhanced_experience vendors.sentry_sdk._compat>", line 115, in reraise
  File "<enhanced_experience vendors.sentry_sdk.integrations.threading>", line 70, in run
  File "D:\AIGC\sd-webui-aki-v4.6.1\modules\memmon.py", line 53, in run
    free, total = self.cuda_mem_get_info()
  File "D:\AIGC\sd-webui-aki-v4.6.1\modules\memmon.py", line 34, in cuda_mem_get_info
    return torch.cuda.mem_get_info(index)
  File "D:\AIGC\sd-webui-aki-v4.6.1\python\lib\site-packages\torch\cuda\memory.py", line 663, in mem_get_info
    return torch.cuda.cudart().cudaMemGetInfo(device)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [32,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [33,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [34,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [35,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [36,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [37,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [38,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [39,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [40,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [41,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [42,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [43,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [44,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [45,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [46,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [47,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [48,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [49,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [50,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [51,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [52,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [53,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [54,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [55,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [56,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [57,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [58,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [59,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [60,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [61,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [62,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.
C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\IndexKernel.cu:92: block: [694,0,0], thread: [63,0,0] Assertion `-sizes[i] <= index && index < sizes[i] && "index out of bounds"` failed.

--------
[程序异常退出,退出代码为 3 (0x00000003)]

Additional information

No response