Closed dhlsam closed 3 weeks ago
hello @dhlsam :) if you create a requirements.txt file in the folder \mnt\user\appdata-ssd\stable-diffusion\50-IOPaint it wil install the content at launch. it's in the standard format, I just do a "pip install -r requirements.txt" before launching apps.
hello @dhlsam :) if you create a requirements.txt file in the folder \mnt\user\appdata-ssd\stable-diffusion\50-IOPaint it wil install the content at launch. it's in the standard format, I just do a "pip install -r requirements.txt" before launching apps.
Hi,I add requirements.txt in iopaint folder,and installed rembg/realesrgan/gfpgan but error when launching WebUI
parameters.txt
--host=0.0.0.0 --port=9000
--device=cuda
--model=lama
--enable-anime-seg
--enable-restoreformer
--restoreformer-device cuda
--enable-remove-bg
--enable-realesrgan
--realesrgan-model RealESRGAN_x4plus
--realesrgan-device cuda
--enable-gfpgan
--gfpgan-device cuda
--enable-interactive-seg
--interactive-seg-model=vit_l
--interactive-seg-device=cuda
log 2024-08-13 00:37:21.156 | INFO | iopaint.runtime:setup_model_dir:82 - Model directory: /config/temp
/config/50-IOPaint/env/lib/python3.11/site-packages/iopaint/model/ldm.py:279: FutureWarning: torch.cuda.amp.autocast(args...)
is deprecated. Please use torch.amp.autocast('cuda', args...)
instead.
@torch.cuda.amp.autocast()
[W813 00:38:15.583938972 init.cpp:767] Warning: nvfuser is no longer supported in torch script, use _jit_set_nvfuser_enabled is deprecated and a no-op (function operator())
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_condition.py:20: FutureWarning: UNet2DConditionOutput
is deprecated and will be removed in version 0.29. Importing UNet2DConditionOutput
from diffusers.models.unet_2d_condition
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionOutput
, instead.
deprecate("UNet2DConditionOutput", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_condition.py:25: FutureWarning: UNet2DConditionModel
is deprecated and will be removed in version 0.29. Importing UNet2DConditionModel
from diffusers.models.unet_2d_condition
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_condition import UNet2DConditionModel
, instead.
deprecate("UNet2DConditionModel", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:249: FutureWarning: AutoencoderTinyBlock
is deprecated and will be removed in version 0.29. Importing AutoencoderTinyBlock
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AutoencoderTinyBlock
, instead.
deprecate("AutoencoderTinyBlock", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:254: FutureWarning: UNetMidBlock2D
is deprecated and will be removed in version 0.29. Importing UNetMidBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D
, instead.
deprecate("UNetMidBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:259: FutureWarning: UNetMidBlock2DCrossAttn
is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DCrossAttn
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DCrossAttn
, instead.
deprecate("UNetMidBlock2DCrossAttn", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:264: FutureWarning: UNetMidBlock2DSimpleCrossAttn
is deprecated and will be removed in version 0.29. Importing UNetMidBlock2DSimpleCrossAttn
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2DSimpleCrossAttn
, instead.
deprecate("UNetMidBlock2DSimpleCrossAttn", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:269: FutureWarning: AttnDownBlock2D
is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownBlock2D
, instead.
deprecate("AttnDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:274: FutureWarning: CrossAttnDownBlock2D
is deprecated and will be removed in version 0.29. Importing AttnDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnDownBlock2D
, instead.
deprecate("CrossAttnDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:279: FutureWarning: DownBlock2D
is deprecated and will be removed in version 0.29. Importing DownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import DownBlock2D
, instead.
deprecate("DownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:284: FutureWarning: AttnDownEncoderBlock2D
is deprecated and will be removed in version 0.29. Importing AttnDownEncoderBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnDownEncoderBlock2D
, instead.
deprecate("AttnDownEncoderBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:289: FutureWarning: AttnSkipDownBlock2D
is deprecated and will be removed in version 0.29. Importing AttnSkipDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipDownBlock2D
, instead.
deprecate("AttnSkipDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:294: FutureWarning: SkipDownBlock2D
is deprecated and will be removed in version 0.29. Importing SkipDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipDownBlock2D
, instead.
deprecate("SkipDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:299: FutureWarning: ResnetDownsampleBlock2D
is deprecated and will be removed in version 0.29. Importing ResnetDownsampleBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetDownsampleBlock2D
, instead.
deprecate("ResnetDownsampleBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:304: FutureWarning: SimpleCrossAttnDownBlock2D
is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnDownBlock2D
, instead.
deprecate("SimpleCrossAttnDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:309: FutureWarning: KDownBlock2D
is deprecated and will be removed in version 0.29. Importing KDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KDownBlock2D
, instead.
deprecate("KDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:314: FutureWarning: KCrossAttnDownBlock2D
is deprecated and will be removed in version 0.29. Importing KCrossAttnDownBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnDownBlock2D
, instead.
deprecate("KCrossAttnDownBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:319: FutureWarning: AttnUpBlock2D
is deprecated and will be removed in version 0.29. Importing AttnUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpBlock2D
, instead.
deprecate("AttnUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:324: FutureWarning: CrossAttnUpBlock2D
is deprecated and will be removed in version 0.29. Importing CrossAttnUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import CrossAttnUpBlock2D
, instead.
deprecate("CrossAttnUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:329: FutureWarning: UpBlock2D
is deprecated and will be removed in version 0.29. Importing UpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpBlock2D
, instead.
deprecate("UpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:334: FutureWarning: UpDecoderBlock2D
is deprecated and will be removed in version 0.29. Importing UpDecoderBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import UpDecoderBlock2D
, instead.
deprecate("UpDecoderBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:339: FutureWarning: AttnUpDecoderBlock2D
is deprecated and will be removed in version 0.29. Importing AttnUpDecoderBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnUpDecoderBlock2D
, instead.
deprecate("AttnUpDecoderBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:344: FutureWarning: AttnSkipUpBlock2D
is deprecated and will be removed in version 0.29. Importing AttnSkipUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import AttnSkipUpBlock2D
, instead.
deprecate("AttnSkipUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:349: FutureWarning: SkipUpBlock2D
is deprecated and will be removed in version 0.29. Importing SkipUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SkipUpBlock2D
, instead.
deprecate("SkipUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:354: FutureWarning: ResnetUpsampleBlock2D
is deprecated and will be removed in version 0.29. Importing ResnetUpsampleBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import ResnetUpsampleBlock2D
, instead.
deprecate("ResnetUpsampleBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:359: FutureWarning: SimpleCrossAttnUpBlock2D
is deprecated and will be removed in version 0.29. Importing SimpleCrossAttnUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import SimpleCrossAttnUpBlock2D
, instead.
deprecate("SimpleCrossAttnUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:364: FutureWarning: KUpBlock2D
is deprecated and will be removed in version 0.29. Importing KUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KUpBlock2D
, instead.
deprecate("KUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:369: FutureWarning: KCrossAttnUpBlock2D
is deprecated and will be removed in version 0.29. Importing KCrossAttnUpBlock2D
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KCrossAttnUpBlock2D
, instead.
deprecate("KCrossAttnUpBlock2D", "0.29", deprecation_message)
/config/50-IOPaint/env/lib/python3.11/site-packages/diffusers/models/unet_2d_blocks.py:375: FutureWarning: KAttentionBlock
is deprecated and will be removed in version 0.29. Importing KAttentionBlock
from diffusers.models.unet_2d_blocks
is deprecated and this will be removed in a future version. Please use from diffusers.models.unets.unet_2d_blocks import KAttentionBlock
, instead.
deprecate("KAttentionBlock", "0.29", deprecation_message)
2024-08-13 00:38:53.419 | INFO | iopaint.plugins:build_plugins:32 - Initialize InteractiveSeg plugin
2024-08-13 00:38:53.420 | INFO | iopaint.plugins.interactive_seg:_init_session:62 - SegmentAnything model path: /config/temp/torch/hub/checkpoints/sam_vit_l_0b3195.pth
/config/50-IOPaint/env/lib/python3.11/site-packages/iopaint/plugins/segment_anything/build_sam.py:199: FutureWarning: You are using torch.load
with weights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only
will be flipped to True
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals
. We recommend you start setting weights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state_dict = torch.load(f)
2024-08-13 00:38:55.809 | INFO | iopaint.plugins:build_plugins:38 - Initialize RemoveBG plugin
/config/50-IOPaint/env/lib/python3.11/site-packages/numba/np/ufunc/parallel.py:371: NumbaWarning: The TBB threading layer requires TBB version 2021 update 6 or later i.e., TBB_INTERFACE_VERSION >= 12060. Found TBB_INTERFACE_VERSION = 12050. The TBB threading layer is disabled.
warnings.warn(problem)
/config/50-IOPaint/env/lib/python3.11/site-packages/iopaint/plugins/briarmbg.py:478: FutureWarning: You are using torch.load
with weights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only
will be flipped to True
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals
. We recommend you start setting weights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
net.load_state_dict(torch.load(model_path, map_location="cpu"))
2024-08-13 00:38:59.069 | INFO | iopaint.plugins:build_plugins:42 - Initialize AnimeSeg plugin
2024-08-13 00:38:59.291 | INFO | iopaint.helper:load_model:123 - Loading model from: /config/temp/torch/hub/checkpoints/isnetis.pth
/config/50-IOPaint/env/lib/python3.11/site-packages/iopaint/helper.py:124: FutureWarning: You are using torch.load
with weights_only=False
(the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only
will be flipped to True
. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals
. We recommend you start setting weights_only=True
for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
state_dict = torch.load(model_path, map_location="cpu")
2024-08-13 00:38:59.498 | INFO | iopaint.plugins:build_plugins:46 - Initialize RealESRGAN plugin: RealESRGANModel.RealESRGAN_x4plus, Device.cuda
2024-08-13 00:39:00.313 | ERROR | iopaint.plugins.base_plugin:init:15 - RealESRGAN is not installed, please install it first. pip install realesrgan
{
"host": "0.0.0.0",
"port": 9000,
"inbrowser": false,
"model": "lama",
"no_half": false,
"low_mem": false,
"cpu_offload": false,
"disable_nsfw_checker": false,
"local_files_only": false,
"cpu_textencoder": false,
"device": "cuda",
"input": null,
"output_dir": null,
"quality": 95,
"enable_interactive_seg": true,
"interactive_seg_model": "vit_l",
"interactive_seg_device": "cpu",
"enable_remove_bg": true,
"remove_bg_model": "briaai/RMBG-1.4",
"enable_anime_seg": true,
"enable_realesrgan": true,
"realesrgan_device": "cuda",
"realesrgan_model": "RealESRGAN_x4plus",
"enable_gfpgan": true,
"gfpgan_device": "cuda",
"enable_restoreformer": true,
"restoreformer_device": "cuda"
}
/50.sh: line 41: wait: pid 99999 is not a child of this shell
/entry.sh: line 19: /50: No such file or directory
/entry.sh: line 20: /config/scripts/50: No such file or directory
/entry.sh: line 21: /config/scripts/50.sh: No such file or directory
error when launching WebUI
there is a clear error : RealESRGAN is not installed, please install it first. pip install realesrgan
and for the last errors, if it isn't related, I believe i'll have to test (because I have no idea ^^)
thanks, after install insightface in forge UI , Failed to create CUDAExecutionProvider,only shows CPUExecutionProvider how can I uninstall onnxruntime and install onnxruntime-gpu in container for example pip uninstall onnxruntime pip install --upgrade protobuf pip install --upgrade --force-reinstall onnxruntime-gpu
for iopaint I want to activate the plugin functions I put --enable-remove-bg in parameters.txt but also I need to install pip install rembg in venv for facefusion docker, can't run it with --execution-providers cuda it shows error when launching WebUI