light-and-ray / sd-webui-replacer

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

No Replacer Tab after update #63

Closed JackR-67 closed 4 months ago

JackR-67 commented 4 months ago

Hello, I have a problem after an update was performed. I have not had any problems with it so far. What`s wrong ? Can you help me. Thanks.

I am attaching the log here:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: f0.0.17v1.8.0rc-latest-276-g29be1da7 Commit hash: 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7 CUDA 12.1 Launching Web UI with arguments: --theme dark --api --xformers --no-half --disable-nan-check --autolaunch Total VRAM 12281 MB, total RAM 32713 MB WARNING:xformers:A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton' xformers version: 0.0.23.post1 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4070 Ti : native Hint: your device supports --pin-shared-memory for potential speed improvements. Hint: your device supports --cuda-malloc for potential speed improvements. Hint: your device supports --cuda-stream for potential speed improvements. VAE dtype: torch.bfloat16 CUDA Stream Activated: False 2024-04-17 13:35:21.185517: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0. WARNING:tensorflow:From E:\Webui_forge\system\python\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

Using xformers cross attention Extension "sd-webui-lama-cleaner-masked-content" requires "sd-webui-controlnet" which is not installed. ControlNet preprocessor location: E:\Webui_forge\webui\models\ControlNetPreprocessor [-] ADetailer initialized. version: 24.4.1, num models: 14 13:35:48 - ReActor - STATUS - Running v0.7.0-b7 on Device: CUDA Loading weights [d157850094] from E:\Webui_forge\webui\models\Stable-diffusion\SD1.5\epicphotogasm_z-inpainting.safetensors Error executing callback before_ui for E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py Traceback (most recent call last): File "E:\Webui_forge\webui\modules\script_callbacks.py", line 297, in before_ui_callback c.callback() File "E:\Webui_forge\webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 526, in initMainUI replacerMainUI = ReplacerMainUI(isDedicatedPage=False) File "E:\Webui_forge\webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 34, in init self.init_tab(isDedicatedPage) File "E:\Webui_forge\webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 152, in init_tab makeVideoUI(comp) File "E:\Webui_forge\webui\extensions\sd-webui-replacer\replacer\ui\video_ui.py", line 86, in makeVideoUI inpaintModels = replacer_extensions.controlnet.getInpaintModels() File "E:\Webui_forge\webui\extensions\sd-webui-replacer\replacer\extensions\controlnet.py", line 189, in getInpaintModels models: str = external_code.get_models() AttributeError: module 'lib_controlnet.external_code' has no attribute 'get_models'


Error calling: E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_script.py/ui Traceback (most recent call last): File "E:\Webui_forge\webui\modules\scripts.py", line 564, in wrap_call return func(args, kwargs) File "E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 57, in ui comp = replacer_tab_ui.replacerMainUI.components AttributeError: 'NoneType' object has no attribute 'components'


model_type EPS UNet ADM Dimension 0 Error calling: E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_script.py/ui Traceback (most recent call last): File "E:\Webui_forge\webui\modules\scripts.py", line 564, in wrap_call return func(args, kwargs) File "E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 57, in ui comp = replacer_tab_ui.replacerMainUI.components AttributeError: 'NoneType' object has no attribute 'components'


2024-04-17 13:35:53,769 - ControlNet - INFO - ControlNet UI callback registered. *** Error executing callback ui_tabs_callback for E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py Traceback (most recent call last): File "E:\Webui_forge\webui\modules\script_callbacks.py", line 183, in ui_tabs_callback res += c.callback() or [] File "E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_main_ui.py", line 17, in on_ui_tabs tab = replacer_tab_ui.replacerMainUI.getReplacerTabUI() AttributeError: 'NoneType' object has no attribute 'getReplacerTabUI'


Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Exception in thread Thread-32 (webui_worker): Traceback (most recent call last): File "threading.py", line 1016, in _bootstrap_inner File "threading.py", line 953, in run File "E:\Webui_forge\webui\webui.py", line 117, in webui_worker create_api(app) File "E:\Webui_forge\webui\webui.py", line 30, in create_api api = Api(app, queue_lock) File "E:\Webui_forge\webui\modules\api\api.py", line 268, in init self.default_script_arg_txt2img = self.init_default_script_args(txt2img_script_runner) File "E:\Webui_forge\webui\modules\api\api.py", line 331, in init_default_script_args if script.ui(script.is_img2img): File "E:\Webui_forge\webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 57, in ui comp = replacer_tab_ui.replacerMainUI.components AttributeError: 'NoneType' object has no attribute 'components' Using xformers attention in VAE Working with z of shape (1, 4, 32, 32) = 4096 dimensions. Using xformers attention in VAE extra {'cond_stage_model.clip_l.logit_scale', 'cond_stage_model.clip_l.text_projection'} left over keys: dict_keys(['alphas_cumprod', 'alphas_cumprod_prev', 'betas', 'log_one_minus_alphas_cumprod', 'model_ema.decay', 'model_ema.num_updates', 'posterior_log_variance_clipped', 'posterior_mean_coef1', 'posterior_mean_coef2', 'posterior_variance', 'sqrt_alphas_cumprod', 'sqrt_one_minus_alphas_cumprod', 'sqrt_recip_alphas_cumprod', 'sqrt_recipm1_alphas_cumprod']) To load target model SD1ClipModel Begin to load 1 model [Memory Management] Current Free GPU Memory (MB) = 11037.8173828125 [Memory Management] Model Memory (MB) = 454.2076225280762 [Memory Management] Minimal Inference Memory (MB) = 1024.0 [Memory Management] Estimated Remaining GPU Memory (MB) = 9559.609760284424 Moving model(s) has taken 1.46 seconds Model loaded in 5.6s (load weights from disk: 0.2s, forge instantiate config: 0.1s, forge load real models: 3.4s, calculate empty prompt: 1.8s).

light-and-ray commented 4 months ago

As I see, you use sd forge. Unfortunately I don't see a reason to continue forge support. Read about it here https://github.com/light-and-ray/sd-webui-replacer/issues/60