light-and-ray / sd-webui-replacer

A tab for sd-webui for replacing objects in pictures or videos using detection prompt
208 stars 11 forks source link

AttributeError: 'KDiffusionSampler' object has no attribute 'vec_cc' #61

Closed ghkim89 closed 7 months ago

ghkim89 commented 7 months ago

111111

AttributeError: 'KDiffusionSampler' object has no attribute 'vec_cc'

Can you tell me how to resolve this error?

light-and-ray commented 7 months ago

Show console log. I assume it's a problem with other extension

light-and-ray commented 7 months ago
ghkim89 commented 7 months ago

I disabled both extensions. However, a new error occurred. AttributeError: 'KDiffusionSampler' object has no attribute 'trajectory_enable'

To create a public link, set share=True in launch(). IIB Database file has been successfully backed up to the backup folder. Startup time: 108.0s (prepare environment: 38.3s, import torch: 8.9s, import gradio: 4.6s, setup paths: 5.3s, initialize shared: 0.4s, other imports: 1.1s, list SD models: 0.1s, load scripts: 20.6s, scripts before_ui_callback: 3.3s, create ui: 7.4s, gradio launch: 2.8s, add APIs: 14.9s, app_started_callback: 0.4s). Start SAM Processing Installing sd-webui-segment-anything requirement: groundingdino Traceback (most recent call last): File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-segment-anything\scripts\dino.py", line 67, in install_goundingdino launch.run_pip( File "h:\pinokio\api\automatic1111.git\app\modules\launch_utils.py", line 143, in run_pip return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live) File "h:\pinokio\api\automatic1111.git\app\modules\launch_utils.py", line 115, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install sd-webui-segment-anything requirement: groundingdino. Command: "h:\pinokio\api\automatic1111.git\app\venv\Scripts\python.exe" -m pip install git+https://github.com/IDEA-Research/GroundingDINO --prefer-binary Error code: 1 stdout: Collecting git+https://github.com/IDEA-Research/GroundingDINO Cloning https://github.com/IDEA-Research/GroundingDINO to h:\pinokio\cache\tmpdir\pip-req-build-irgv8puj Resolved https://github.com/IDEA-Research/GroundingDINO to commit 3a2b344737cb0f3c3f12d0f7f58be5dc71198289 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: torch in .\venv\lib\site-packages (from groundingdino==0.1.0) (2.1.2+cu121) Requirement already satisfied: torchvision in .\venv\lib\site-packages (from groundingdino==0.1.0) (0.16.2+cu121) Requirement already satisfied: transformers in .\venv\lib\site-packages (from groundingdino==0.1.0) (4.30.2) Requirement already satisfied: addict in .\venv\lib\site-packages (from groundingdino==0.1.0) (2.4.0) Requirement already satisfied: yapf in .\venv\lib\site-packages (from groundingdino==0.1.0) (0.40.2) Requirement already satisfied: timm in .\venv\lib\site-packages (from groundingdino==0.1.0) (0.9.16) Requirement already satisfied: numpy in .\venv\lib\site-packages (from groundingdino==0.1.0) (1.26.2) Requirement already satisfied: opencv-python in .\venv\lib\site-packages (from groundingdino==0.1.0) (4.9.0.80) Requirement already satisfied: supervision in .\venv\lib\site-packages (from groundingdino==0.1.0) (0.19.0) Requirement already satisfied: pycocotools in .\venv\lib\site-packages (from groundingdino==0.1.0) (2.0.7) Requirement already satisfied: matplotlib>=2.1.0 in .\venv\lib\site-packages (from pycocotools->groundingdino==0.1.0) (3.8.3) Requirement already satisfied: pillow>=9.4 in .\venv\lib\site-packages (from supervision->groundingdino==0.1.0) (9.5.0) Requirement already satisfied: scipy<2.0.0,>=1.10.0 in .\venv\lib\site-packages (from supervision->groundingdino==0.1.0) (1.12.0) Requirement already satisfied: opencv-python-headless>=4.5.5.64 in .\venv\lib\site-packages (from supervision->groundingdino==0.1.0) (4.9.0.80) Requirement already satisfied: defusedxml<0.8.0,>=0.7.1 in .\venv\lib\site-packages (from supervision->groundingdino==0.1.0) (0.7.1) Requirement already satisfied: pyyaml>=5.3 in .\venv\lib\site-packages (from supervision->groundingdino==0.1.0) (6.0.1) Requirement already satisfied: safetensors in .\venv\lib\site-packages (from timm->groundingdino==0.1.0) (0.4.2) Requirement already satisfied: huggingface_hub in .\venv\lib\site-packages (from timm->groundingdino==0.1.0) (0.21.4) Requirement already satisfied: networkx in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (3.2.1) Requirement already satisfied: filelock in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (3.13.1) Requirement already satisfied: fsspec in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (2023.9.2) Requirement already satisfied: typing-extensions in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (4.10.0) Requirement already satisfied: sympy in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (1.12) Requirement already satisfied: jinja2 in .\venv\lib\site-packages (from torch->groundingdino==0.1.0) (3.1.3) Requirement already satisfied: requests in .\venv\lib\site-packages (from torchvision->groundingdino==0.1.0) (2.31.0) Requirement already satisfied: regex!=2019.12.17 in .\venv\lib\site-packages (from transformers->groundingdino==0.1.0) (2023.12.25) Requirement already satisfied: packaging>=20.0 in .\venv\lib\site-packages (from transformers->groundingdino==0.1.0) (23.2) Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in .\venv\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.3) Requirement already satisfied: tqdm>=4.27 in .\venv\lib\site-packages (from transformers->groundingdino==0.1.0) (4.66.2) Requirement already satisfied: tomli>=2.0.1 in .\venv\lib\site-packages (from yapf->groundingdino==0.1.0) (2.0.1) Requirement already satisfied: importlib-metadata>=6.6.0 in .\venv\lib\site-packages (from yapf->groundingdino==0.1.0) (7.0.2) Requirement already satisfied: platformdirs>=3.5.1 in .\venv\lib\site-packages (from yapf->groundingdino==0.1.0) (4.2.0) Requirement already satisfied: zipp>=0.5 in .\venv\lib\site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino==0.1.0) (3.18.1) Requirement already satisfied: kiwisolver>=1.3.1 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (3.1.2) Requirement already satisfied: fonttools>=4.22.0 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (4.50.0) Requirement already satisfied: cycler>=0.10 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (0.12.1) Requirement already satisfied: python-dateutil>=2.7 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (2.9.0.post0) Requirement already satisfied: contourpy>=1.0.1 in .\venv\lib\site-packages (from matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.2.0) Requirement already satisfied: colorama in .\venv\lib\site-packages (from tqdm>=4.27->transformers->groundingdino==0.1.0) (0.4.6) Requirement already satisfied: MarkupSafe>=2.0 in .\venv\lib\site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.5) Requirement already satisfied: urllib3<3,>=1.21.1 in .\venv\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2.0.6) Requirement already satisfied: certifi>=2017.4.17 in .\venv\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2024.2.2) Requirement already satisfied: charset-normalizer<4,>=2 in .\venv\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in .\venv\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (3.6) Requirement already satisfied: mpmath>=0.19 in .\venv\lib\site-packages (from sympy->torch->groundingdino==0.1.0) (1.3.0) Requirement already satisfied: six>=1.5 in .\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.1.0->pycocotools->groundingdino==0.1.0) (1.16.0) Building wheels for collected packages: groundingdino Building wheel for groundingdino (setup.py): started Building wheel for groundingdino (setup.py): finished with status 'error' Running setup.py clean for groundingdino Failed to build groundingdino Installing collected packages: groundingdino Running setup.py install for groundingdino: started Running setup.py install for groundingdino: finished with status 'error'

stderr: WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO 'H:\pinokio\cache\TMPDIR\pip-req-build-irgv8puj' error: subprocess-exited-with-error

python setup.py bdist_wheel did not run successfully. exit code: 1

[90 lines of output] Building wheel groundingdino-0.1.0 Compiling with CUDA running bdist_wheel h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py:502: UserWarning: Attempted to use ninja as the BuildExtension backend but we could no t find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\groundingdino copying groundingdino\version.py -> build\lib.win-amd64-3.10\groundingdino copying groundingdinoinit.py -> build\lib.win-amd64-3.10\groundingdino creating build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\config\GroundingDINO_SwinB_cfg.py -> build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\config\GroundingDINO_SwinT_OGC.py -> build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\configinit.py -> build\lib.win-amd64-3.10\groundingdino\config creating build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasets\cocogrounding_eval.py -> build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasets\transforms.py -> build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasetsinit.py -> build\lib.win-amd64-3.10\groundingdino\datasets creating build\lib.win-amd64-3.10\groundingdino\models copying groundingdino\models\registry.py -> build\lib.win-amd64-3.10\groundingdino\models copying groundingdino\modelsinit.py -> build\lib.win-amd64-3.10\groundingdino\models creating build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\box_ops.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\get_tokenlizer.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\inference.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\logger.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\misc.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\slconfig.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\slio.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\time_counter.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\utils.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\visualizer.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\vl_utils.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\utilinit.py -> build\lib.win-amd64-3.10\groundingdino\util creating build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\bertwarper.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\fuse_modules.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\groundingdino.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\ms_deform_attn.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\transformer.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\transformer_vanilla.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\utils.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINOinit.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO creating build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\backbone.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\position_encoding.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\swin_transformer.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backboneinit.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone running build_ext Traceback (most recent call last): File "", line 2, in File "", line 34, in File "H:\pinokio\cache\TMPDIR\pip-req-build-irgv8puj\setup.py", line 204, in setup( File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptoolsinit.py", line 155, in setup return distutils.core.setup(**attrs) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\core.py", line 148, in setup return run_commands(dist) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands dist.run_commands() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands self.run_command(cmd) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\wheel\bdist_wheel.py", line 368, in run self.run_command("build") File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 339, in run self.build_extensions() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py", line 525, in build_extensions _check_cuda_version(compiler_name, compiler_version) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py", line 413, in _check_cuda_version raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)) RuntimeError: The detected CUDA version (11.3) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions.

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for groundingdino WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) error: subprocess-exited-with-error

Running setup.py install for groundingdino did not run successfully. exit code: 1

[94 lines of output] Building wheel groundingdino-0.1.0 Compiling with CUDA running install h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip a nd other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\groundingdino copying groundingdino\version.py -> build\lib.win-amd64-3.10\groundingdino copying groundingdinoinit.py -> build\lib.win-amd64-3.10\groundingdino creating build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\config\GroundingDINO_SwinB_cfg.py -> build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\config\GroundingDINO_SwinT_OGC.py -> build\lib.win-amd64-3.10\groundingdino\config copying groundingdino\configinit.py -> build\lib.win-amd64-3.10\groundingdino\config creating build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasets\cocogrounding_eval.py -> build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasets\transforms.py -> build\lib.win-amd64-3.10\groundingdino\datasets copying groundingdino\datasetsinit.py -> build\lib.win-amd64-3.10\groundingdino\datasets creating build\lib.win-amd64-3.10\groundingdino\models copying groundingdino\models\registry.py -> build\lib.win-amd64-3.10\groundingdino\models copying groundingdino\modelsinit.py -> build\lib.win-amd64-3.10\groundingdino\models creating build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\box_ops.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\get_tokenlizer.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\inference.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\logger.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\misc.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\slconfig.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\slio.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\time_counter.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\utils.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\visualizer.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\util\vl_utils.py -> build\lib.win-amd64-3.10\groundingdino\util copying groundingdino\utilinit.py -> build\lib.win-amd64-3.10\groundingdino\util creating build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\bertwarper.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\fuse_modules.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\groundingdino.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\ms_deform_attn.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\transformer.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\transformer_vanilla.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINO\utils.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO copying groundingdino\models\GroundingDINOinit.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO creating build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\backbone.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\position_encoding.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backbone\swin_transformer.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone copying groundingdino\models\GroundingDINO\backboneinit.py -> build\lib.win-amd64-3.10\groundingdino\models\GroundingDINO\backbone running build_ext h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py:502: UserWarning: Attempted to use ninja as the BuildExtension backend but we could no t find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) Traceback (most recent call last): File "", line 2, in File "", line 34, in File "H:\pinokio\cache\TMPDIR\pip-req-build-irgv8puj\setup.py", line 204, in setup( File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptoolsinit.py", line 155, in setup return distutils.core.setup(**attrs) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\core.py", line 148, in setup return run_commands(dist) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands dist.run_commands() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands self.run_command(cmd) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools\command\install.py", line 68, in run return orig.install.run(self) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\command\install.py", line 662, in run self.run_command('build') File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command cmd_obj.run() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools\command\build_ext.py", line 79, in run _build_ext.run(self) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 339, in run self.build_extensions() File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py", line 525, in build_extensions _check_cuda_version(compiler_name, compiler_version) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils\cpp_extension.py", line 413, in _check_cuda_version raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda)) RuntimeError: The detected CUDA version (11.3) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions.

[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

Encountered error while trying to install package.

groundingdino

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution -rotobuf (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages) WARNING: Ignoring invalid distribution - (h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages)

[notice] A new release of pip is available: 23.0.1 -> 24.0 [notice] To update, run: h:\pinokio\api\automatic1111.git\app\venv\Scripts\python.exe -m pip install --upgrade pip

GroundingDINO install failed. Will fall back to local groundingdino this time. Please permanently switch to local groundingdino on Settings/Segment Anything or submit an issue t o https://github.com/IDEA-Research/Grounded-Segment-Anything/issues. Running GroundingDINO Inference Initializing GroundingDINO GroundingDINO_SwinT_OGC (694MB) final text_encoder_type: bert-base-uncased Initializing SAM to cuda Running SAM Inference (1024, 1024, 3) SAM inference with 1 box, 0 positive prompts, 0 negative prompts Creating output image SAM inference with 1 box, 0 positive prompts, 0 negative prompts done. However, GroundingDINO installment has failed. Your process automatically fall back to local groundingdino . Check your terminal for more detail and permanently switch to local groundingdino on Settings/Segment Anything or submit an issue to https://github.com/IDEA-Research/Grounded- Segment-Anything/issues.. Dilation Amount: 35 Dilation Amount: 35 Dilation Amount: 35 MasksCreator cached 0%| | 0/20 [00:00<?, ?it/s] [Replacer] Exception: 'KDiffusionSampler' object has no attribute 'trajectory_enable'

ghkim89 commented 7 months ago

This error occurs when all currently applied extensions have been removed.

AttributeError: 'KDiffusionSampler' object has no attribute 'diffcg_enable'

To create a public link, set share=True in launch(). Startup time: 5.6s (list SD models: 0.1s, load scripts: 1.9s, scripts before_ui_callback: 0.1s, create ui: 0.6s, gradio launch: 2.2s, add APIs: 0.4s, app_started_callback: 0.1s) . Total progress: 0%| | 0/20 [04:18<?, ?it/s] Total progress: 0%| | 0/20 [04:18<?, ?it/s]M asksCreator restored from cache | 0/20 [00:00<?, ?it/s] 0%| | 0/20 [00:00<?, ?it/s] [Replacer] Exception: 'KDiffusionSampler' object has no attribute 'diffcg_enable'


Traceback (most recent call last):
  File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\generate.py", line 140, in generate
    processed, extraImages = generateSingle(image, gArgs, saveDir_, saveSuffix,
  File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\generate.py", line 45, in generateSingle
    processed, scriptImages = inpaint(image, gArgs, savePath, saveSuffix, save_to_dirs,
  File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\inpaint.py", line 90, in inpaint
    processed = process_images(p)
  File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 845, in process_images
    res = process_images_inner(p)
  File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 981, in process_images_inner
    samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts)   
  File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 1732, in sample
    samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning)
  File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_kdiffusion.py", line 172, in sample_img2img
    samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, **e

xtra_params_kwargs)) File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_common.py", line 272, in launch_sampling return func() File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_kdiffusion.py", line 172, in samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, *e xtra_params_kwargs)) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) File "H:\pinokio\api\automatic1111.git\app\repositories\k-diffusion\k_diffusion\sampling.py", line 628, in sample_dpmpp_2m_sde callback({'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': denoised}) File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-diffusion-cg\scripts\diffusion_cg.py", line 29, in center_callback if not self.diffcg_enable or getattr(self.p, "_ad_inner", False): AttributeError: 'KDiffusionSampler' object has no attribute 'diffcg_enable'


Error completing request Arguments: ('task(vhgx3k4ovcwdzoa)', 'tab_single', 'dog', '', 'cat', '', <PIL.Image.Image image mode=RGBA size=1024x1024 at 0x155B87CA830>, None, True, '', '', True, False, '', '', 12, 'None', -1, 'DPM++ 2M SDE', 'Automatic', 20, 0.3, 35, 4, 1280, 'sam_vit_h_4b8939.pth', 'GroundingDINO_SwinT_OGC (694MB)', 5.5, 1, 40, 0, 512, 512, 1, 1, 0, ['script' ], False, False, 'sd_xl_base_1.0.safetensors [31e35c80fc]', 'Random', ['Draw mask'], None, True, ['Draw mask'], None, True, None, '', 2, False, False, [], False, 'video_mode_ani matediff', 36, 0, 12, 1, -1, 1, 16, False, 'None', 1, True, 'awpainting_v13.safetensors [5a44dad2e0]', 'None', 'ESRGAN_4x', 4, 'Use same sampler', 'Use same scheduler', 0.35, 1, '', 1800, 'Lanczos', True, True, 5, '', '', 'Use same checkpoint', 250, 2, True, 'Same', False, 1, 0.5, 4, 0, 0.5, 2) {} Traceback (most recent call last): File "H:\pinokio\api\automatic1111.git\app\modules\call_queue.py", line 57, in f res = list(func(*args, kwargs)) File "H:\pinokio\api\automatic1111.git\app\modules\call_queue.py", line 36, in f res = func(*args, kwargs) File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\ui\generate_ui.py", line 301, in generate_ui processed, allExtraImages = generate(gArgs, saveDir, saveToSubdirs, useSaveFormatForVideo, extraincludes) File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\generate.py", line 140, in generate processed, extraImages = generateSingle(image, gArgs, saveDir, saveSuffix, File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\generate.py", line 45, in generateSingle processed, scriptImages = inpaint(image, gArgs, savePath, saveSuffix, save_to_dirs, File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-replacer\replacer\inpaint.py", line 90, in inpaint processed = process_images(p) File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 845, in process_images res = process_images_inner(p) File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 981, in process_images_inner samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts)
File "H:\pinokio\api\automatic1111.git\app\modules\processing.py", line 1732, in sample samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning) File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_kdiffusion.py", line 172, in sample_img2img samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state,
e xtra_params_kwargs)) File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_common.py", line 272, in launch_sampling return func() File "H:\pinokio\api\automatic1111.git\app\modules\sd_samplers_kdiffusion.py", line 172, in samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, *e xtra_params_kwargs)) File "h:\pinokio\api\automatic1111.git\app\venv\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args,
kwargs) File "H:\pinokio\api\automatic1111.git\app\repositories\k-diffusion\k_diffusion\sampling.py", line 628, in sample_dpmpp_2m_sde callback({'x': x, 'i': i, 'sigma': sigmas[i], 'sigma_hat': sigmas[i], 'denoised': denoised}) File "H:\pinokio\api\automatic1111.git\app\extensions\sd-webui-diffusion-cg\scripts\diffusion_cg.py", line 29, in center_callback if not self.diffcg_enable or getattr(self.p, "_ad_inner", False): AttributeError: 'KDiffusionSampler' object has no attribute 'diffcg_enable'


light-and-ray commented 7 months ago

There is problem in dependency installing. Try to remove venv directory

ghkim89 commented 7 months ago

I removed the venv folder and reinstalled it, but I got the same error.

light-and-ray commented 7 months ago

Do you try reinstall with disabled extensions?