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

Error running Depth Map module on img2img #242

Open
SauChi666 opened this issue Apr 30, 2024 · 0 comments
Open

Error running Depth Map module on img2img #242

SauChi666 opened this issue Apr 30, 2024 · 0 comments

Comments

@SauChi666
Copy link

Will process 12 images, creating 1 new images for each.
100%|███████████████████████████████████████████| 16/16 [00:20<00:00, 1.28s/it]
Miaoshouai boot assistant: Memory Released! | 16/192 [00:10<01:57, 1.50it/s]
DepthMap v0.4.6 (7a3a7820)
WARNING: Cuda device was not found, cpu will be used
device: cpu
Loading model(s) ..
Loading model weights from ./models/midas/midas_v21-f6b98070.pt
Loading weights: ./models/midas/midas_v21-f6b98070.pt
Using cache found in /Users/appleid/.cache/torch/hub/facebookresearch_WSL-Images_main
initialize network with normal
loading the model from ./models/pix2pix/latest_net_G.pth
Computing output(s) ..
0%| | 0/1 [00:00<?, ?it/s]wholeImage being processed in : 768
Adjust factor is: 2.1404109589041096
Selecting patches ...
Target resolution: (3288, 3288, 3)
Resulting depthmap resolution will be : (512, 512)
patches to process: 44
processing patch 0 / 43 | [ 5 5 469 469]
processing patch 1 / 43 | [ 60 15 448 448]
processing patch 2 / 43 | [ 2 2 384 384]
processing patch 3 / 43 | [ 2 47 384 384]
processing patch 4 / 43 | [ 2 92 384 384]
processing patch 5 / 43 | [ 47 2 384 384]
processing patch 6 / 43 | [ 92 2 384 384]
processing patch 7 / 43 | [ 13 147 363 363]
processing patch 8 / 43 | [ 58 147 363 363]
processing patch 9 / 43 | [147 13 363 363]
processing patch 10 / 43 | [ 5 5 289 289]
processing patch 11 / 43 | [ 5 50 289 289]
processing patch 12 / 43 | [ 5 95 289 289]
processing patch 13 / 43 | [ 5 140 289 289]
processing patch 14 / 43 | [ 50 5 289 289]
processing patch 15 / 43 | [ 95 5 289 289]
processing patch 16 / 43 | [140 5 289 289]
processing patch 17 / 43 | [184 5 289 289]
processing patch 18 / 43 | [ 60 240 268 268]
processing patch 19 / 43 | [105 240 268 268]
processing patch 20 / 43 | [150 240 268 268]
processing patch 21 / 43 | [ 26 250 247 247]
processing patch 22 / 43 | [216 261 225 225]
processing patch 23 / 43 | [ 47 2 204 204]
processing patch 24 / 43 | [ 92 2 204 204]
processing patch 25 / 43 | [137 2 204 204]
processing patch 26 / 43 | [182 2 204 204]
processing patch 27 / 43 | [227 2 204 204]
processing patch 28 / 43 | [ 58 237 183 183]
processing patch 29 / 43 | [ 58 327 183 183]
processing patch 30 / 43 | [103 327 183 183]
processing patch 31 / 43 | [148 327 183 183]
processing patch 32 / 43 | [192 327 183 183]
processing patch 33 / 43 | [237 327 183 183]
processing patch 34 / 43 | [293 293 162 162]
processing patch 35 / 43 | [293 338 162 162]
processing patch 36 / 43 | [ 40 40 130 130]
processing patch 37 / 43 | [ 45 0 120 120]
processing patch 38 / 43 | [ 90 0 120 120]
processing patch 39 / 43 | [135 0 120 120]
processing patch 40 / 43 | [179 0 120 120]
processing patch 41 / 43 | [224 0 120 120]
processing patch 42 / 43 | [269 0 120 120]
processing patch 43 / 43 | [359 314 120 120]
*** Error completing request
*** Arguments: ('task(8lgd90xa8m3ciif)', <agent_scheduler.task_runner.FakeRequest object at 0x41e45ab00>, 5, '', '', [], None, None, None, None, None, None, None, 4, 0, 1, 1, 1, 7, 1.5, 0.75, 0.0, 512, 512, 1, 0, 0, 32, 0, '/Users/appleid/stable-diffusion-webui/outputs/img2img-images/2024-04-30/3D', '', '', ['Clip skip: 1', 'Model hash: majicmixRealistic_v6.safetensors [e4a30e4607]', 'VAE: Automatic'], False, [], '', 15, False, 1, 0.5, 4, 0, 0.5, 2, 20, 'DPM++ 2M', 'Automatic', False, '', 0.8, -1, False, -1, 0, 0, 0, False, False, {'ad_model': 'face_yolov8n.pt', 'ad_model_classes': '', 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0.0, 'ad_mask_max_ratio': 1.0, 'ad_x_offset': 0, 'ad_y_offset': 0, 'ad_dilate_erode': 4, 'ad_mask_merge_invert': 'None', 'ad_mask_blur': 4, 'ad_denoising_strength': 0.4, 'ad_inpaint_only_masked': True, 'ad_inpaint_only_masked_padding': 32, 'ad_use_inpaint_width_height': False, 'ad_inpaint_width': 512, 'ad_inpaint_height': 512, 'ad_use_steps': False, 'ad_steps': 28, 'ad_use_cfg_scale': False, 'ad_cfg_scale': 7.0, 'ad_use_checkpoint': False, 'ad_checkpoint': 'Use same checkpoint', 'ad_use_vae': False, 'ad_vae': 'Use same VAE', 'ad_use_sampler': False, 'ad_sampler': 'DPM++ 2M', 'ad_scheduler': 'Use same scheduler', 'ad_use_noise_multiplier': False, 'ad_noise_multiplier': 1.0, 'ad_use_clip_skip': False, 'ad_clip_skip': 1, 'ad_restore_face': False, 'ad_controlnet_model': 'None', 'ad_controlnet_module': 'None', 'ad_controlnet_weight': 1.0, 'ad_controlnet_guidance_start': 0.0, 'ad_controlnet_guidance_end': 1.0}, {'ad_model': 'None', 'ad_model_classes': '', 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0.0, 'ad_mask_max_ratio': 1.0, 'ad_x_offset': 0, 'ad_y_offset': 0, 'ad_dilate_erode': 4, 'ad_mask_merge_invert': 'None', 'ad_mask_blur': 4, 'ad_denoising_strength': 0.4, 'ad_inpaint_only_masked': True, 'ad_inpaint_only_masked_padding': 32, 'ad_use_inpaint_width_height': False, 'ad_inpaint_width': 512, 'ad_inpaint_height': 512, 'ad_use_steps': False, 'ad_steps': 28, 'ad_use_cfg_scale': False, 'ad_cfg_scale': 7.0, 'ad_use_checkpoint': False, 'ad_checkpoint': 'Use same checkpoint', 'ad_use_vae': False, 'ad_vae': 'Use same VAE', 'ad_use_sampler': False, 'ad_sampler': 'DPM++ 2M', 'ad_scheduler': 'Use same scheduler', 'ad_use_noise_multiplier': False, 'ad_noise_multiplier': 1.0, 'ad_use_clip_skip': False, 'ad_clip_skip': 1, 'ad_restore_face': False, 'ad_controlnet_model': 'None', 'ad_controlnet_module': 'None', 'ad_controlnet_weight': 1.0, 'ad_controlnet_guidance_start': 0.0, 'ad_controlnet_guidance_end': 1.0}, False, True, False, 0, -1, False, 'img2img', False, '', '', False, 'Euler a', False, '2Guofeng2_v20.safetensors [3257896d4b]', True, 0.5, True, 4, True, 32, True, False, 30, False, 6, False, 512, 512, '', False, 1, 'Both ▦', False, '', False, True, True, False, False, False, False, 100, 100, False, '', '', '', 'generateMasksTab', 4, 4, 2.5, 30, 1.03, 1, 1, 5, 0.5, 5, False, True, False, 20, False, False, 1, False, False, False, 1.1, 1.5, 100, 0.7, False, False, True, False, False, 0, 'Gustavosta/MagicPrompt-Stable-Diffusion', '', False, 1.6, 0.97, 0.4, 0, 20, 0, 12, '', True, False, False, False, 512, False, True, ['Face'], False, '{\n "face_detector": "RetinaFace",\n "rules": {\n "then": {\n "face_processor": "img2img",\n "mask_generator": {\n "name": "BiSeNet",\n "params": {\n "fallback_ratio": 0.1\n }\n }\n }\n }\n}', 'None', 40, False, False, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, None, 'Refresh models', <scripts.animatediff_ui.AnimateDiffProcess object at 0x40d8e5450>, UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, inpaint_crop_input_image=True, hr_option=<HiResFixOption.BOTH: 'Both'>, save_detected_map=True, advanced_weighting=None, effective_region_mask=None, ipadapter_input=None), UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, inpaint_crop_input_image=True, hr_option=<HiResFixOption.BOTH: 'Both'>, save_detected_map=True, advanced_weighting=None, effective_region_mask=None, ipadapter_input=None), UiControlNetUnit(enabled=False, module='none', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, low_vram=False, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, inpaint_crop_input_image=True, hr_option=<HiResFixOption.BOTH: 'Both'>, save_detected_map=True, advanced_weighting=None, effective_region_mask=None, ipadapter_input=None), '🔄', None, False, '0', '/Users/appleid/stable-diffusion-webui/models/roop/inswapper_128.onnx', 'CodeFormer', 1, '', 1, 1, False, True, False, False, 0, None, [], 0, False, [], [], False, 0, 1, False, False, 0, None, [], -2, False, [], False, 0, None, None, False, '1:1,1:2,1:2', '0:0,0:0,0:1', '0.2,0.8,0.8', 150, 0.2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, '* CFG Scale should be 2 or lower.', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '

Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8

', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, 'start', '', '

Will upscale the image by the selected scale factor; use width and height sliders to set tile size

', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, False, False, False, 0, False, '', '', 0, 'Not set', True, True, '', '', '', '', '', 1.3, 'Not set', 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', False, 'None', None, True, None, None, False, False, 0, True, 384, 384, False, 4, True, True, False, False, 1.6, 0.97, 0.4, 0, 20, 0, 12, '', True, False, False, False, 512, False, True, ['Face'], False, '{\n "face_detector": "RetinaFace",\n "rules": {\n "then": {\n "face_processor": "img2img",\n "mask_generator": {\n "name": "BiSeNet",\n "params": {\n "fallback_ratio": 0.1\n }\n }\n }\n }\n}', 'None', 40, None, None, False, None, None, False, None, None, False, 50, True, False, 0, 'Range', 1, 'GPU', False, False, False, False, True, 5, 384, False, 384, False, False, 3, False, 3, True, 3, False, 'Horizontal', False, False, 'u2net', False, True, True, False, 0, 2.5, 'polylines_soft', ['left-right', 'red-cyan-anaglyph'], 2, 0, '∯boost∯clipdepth∯clipdepth_far∯clipdepth_mode∯clipdepth_near∯compute_device∯do_output_depth∯gen_normalmap∯gen_rembg∯gen_simple_mesh∯gen_stereo∯model_type∯net_height∯net_size_match∯net_width∯normalmap_invert∯normalmap_post_blur∯normalmap_post_blur_kernel∯normalmap_pre_blur∯normalmap_pre_blur_kernel∯normalmap_sobel∯normalmap_sobel_kernel∯output_depth_combine∯output_depth_combine_axis∯output_depth_invert∯pre_depth_background_removal∯rembg_model∯save_background_removal_masks∯save_outputs∯simple_mesh_occlude∯simple_mesh_spherical∯stereo_balance∯stereo_divergence∯stereo_fill_algo∯stereo_modes∯stereo_offset_exponent∯stereo_separation', '

Will upscale the image depending on the selected target size type

', 512, 0, 8, 32, 64, 0.35, 32, 0, True, 0, False, 8, 0, 0, 2048, 2048, 2) {}
Traceback (most recent call last):
File "/Users/appleid/stable-diffusion-webui/modules/call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "/Users/appleid/stable-diffusion-webui/modules/img2img.py", line 225, in img2img
processed = process_batch(p, img2img_batch_input_dir, img2img_batch_output_dir, img2img_batch_inpaint_mask_dir, args, to_scale=selected_scale_tab == 1, scale_by=scale_by, use_png_info=img2img_batch_use_png_info, png_info_props=img2img_batch_png_info_props, png_info_dir=img2img_batch_png_info_dir)
File "/Users/appleid/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 34, in img2img_process_batch_hijack
return getattr(img2img, '__controlnet_original_process_batch')(p, *args, **kwargs)
File "/Users/appleid/stable-diffusion-webui/modules/img2img.py", line 128, in process_batch
proc = modules.scripts.scripts_img2img.run(p, *args)
File "/Users/appleid/stable-diffusion-webui/modules/scripts.py", line 773, in run
processed = script.run(p, *script_args)
File "/Users/appleid/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/scripts/depthmap.py", line 57, in run
info = create_infotext(
File "/Users/appleid/stable-diffusion-webui/modules/processing.py", line 774, in create_infotext
"Schedule type": p.scheduler,
AttributeError: 'Processed' object has no attribute 'scheduler'


0%| | 0/1 [02:34<?, ?it/s]
ERROR:sd:[AgentScheduler] Task task(8lgd90xa8m3ciif) failed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant