Closed fadedninna closed 2 months ago
If I use any kind of LORA it will give "TypeError: 'NoneType' object is not iterable" error.
It should have been work as expected
Google Chrome
sysinfo-2024-08-06-21-56.json
To load target model SDXLClipModel Begin to load 1 model [Memory Management] Current Free GPU Memory (MB) = 7012.189302444458 [Memory Management] Model Memory (MB) = 2144.3546981811523 [Memory Management] Minimal Inference Memory (MB) = 1228.8 [Memory Management] Estimated Remaining GPU Memory (MB) = 3639.0346042633055 Moving model(s) has taken 1.16 seconds To load target model SDXL Begin to load 1 model [Memory Management] Current Free GPU Memory (MB) = 7011.94044303894 [Memory Management] Model Memory (MB) = 4897.086494445801 [Memory Management] Minimal Inference Memory (MB) = 1228.8 [Memory Management] Estimated Remaining GPU Memory (MB) = 886.0539485931397 Traceback (most recent call last): File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules_forge\main_thread.py", line 37, in loop task.work() File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules_forge\main_thread.py", line 26, in work self.result = self.func(*self.args, **self.kwargs) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\txt2img.py", line 110, in txt2img_function processed = processing.process_images(p) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\processing.py", line 854, in process_images res = process_images_inner(p) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\processing.py", line 1005, 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 "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\processing.py", line 1386, in sample samples = self.sampler.sample(self, x, conditioning, unconditional_conditioning, image_conditioning=self.txt2img_image_conditioning(x)) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\sd_samplers_kdiffusion.py", line 219, in sample sampling_prepare(self.model_wrap.inner_model.forge_objects.unet, x=x) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules_forge\forge_sampler.py", line 129, in sampling_prepare model_management.load_models_gpu( File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\ldm_patched\modules\model_management.py", line 563, in load_models_gpu loaded_model.model_load(lowvram_model_memory, force_patch_weights=force_patch_weights) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\ldm_patched\modules\model_management.py", line 339, in model_load raise e File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\ldm_patched\modules\model_management.py", line 335, in model_load self.real_model = self.model.patch_model(device_to=patch_model_to, patch_weights=load_weights) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\ldm_patched\modules\model_patcher.py", line 318, in patch_model self.patch_weight_to_device(key, device_to) File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\ldm_patched\modules\model_patcher.py", line 293, in patch_weight_to_device self.backup[key] = weight.to(device=self.offload_device, copy=inplace_update) TypeError: to() received an invalid combination of arguments - got (device=torch.device, copy=torch.device, ), but expected one of: * (torch.device device, torch.dtype dtype, bool non_blocking, bool copy, *, torch.memory_format memory_format) * (torch.dtype dtype, bool non_blocking, bool copy, *, torch.memory_format memory_format) * (Tensor tensor, bool non_blocking, bool copy, *, torch.memory_format memory_format) to() received an invalid combination of arguments - got (device=torch.device, copy=torch.device, ), but expected one of: * (torch.device device, torch.dtype dtype, bool non_blocking, bool copy, *, torch.memory_format memory_format) * (torch.dtype dtype, bool non_blocking, bool copy, *, torch.memory_format memory_format) * (Tensor tensor, bool non_blocking, bool copy, *, torch.memory_format memory_format) *** Error completing request *** Arguments: ('task(4sppg446wdu30hg)', <gradio.routes.Request object at 0x000002CB98B413C0>, 'score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up, g0thicPXL\n1girl, blonde_hair, brown_eyes, blush, thigh-high socks, looking up, sitting, indoors, \n<lora:g0th1cPXL:0.4> <lora:incase-ilff-v3-4:0.7> <lora:princess_xl_v2:0.8>', 'deformed, distorted, disfigured, mutated hands and fingers, monochrome background, poorly drawn, bad anatomy, wrong anatomy, extra limbs, missing limb, floating limbs, missing fingers, elongated hands, disconnected limbs, mutation, mutated, ugly, disgusting, blurry, blurry eyes, muscular,', [], 1, 1, 7, 1216, 832, True, 0.35, 2, '4x_foolhardy_Remacri', 10, 0, 0, 'Use same checkpoint', 'Use same sampler', 'Use same scheduler', '', '', [], 0, 30, 'Euler a', 'Automatic', False, '', 0.8, -1, False, 615615295, 0.07, 0, 0, True, False, {'ad_model': 'face_yolov8s.pt', 'ad_model_classes': '', 'ad_tab_enable': True, 'ad_prompt': '', 'ad_negative_prompt': '3d, ', 'ad_confidence': 0.8, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, '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': 768, 'ad_inpaint_height': 768, 'ad_use_steps': False, 'ad_steps': 28, 'ad_use_cfg_scale': False, 'ad_cfg_scale': 7, '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, '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, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1, 'is_api': ()}, {'ad_model': 'None', 'ad_model_classes': '', 'ad_tab_enable': False, 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, '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, '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, '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, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1, 'is_api': ()}, {'ad_model': 'None', 'ad_model_classes': '', 'ad_tab_enable': False, 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, '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, '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, '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, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1, 'is_api': ()}, {'ad_model': 'None', 'ad_model_classes': '', 'ad_tab_enable': False, 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_k_largest': 0, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, '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, '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, '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, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1, 'is_api': ()}, ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=[], batch_mask_gallery=[], multi_inputs_gallery=[], generated_image=None, mask_image=None, hr_option=<HiResFixOption.BOTH: 'Both'>, enabled=False, module='None', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, advanced_weighting=None, pulid_mode=<PuLIDMode.FIDELITY: 'Fidelity'>, union_control_type=<ControlNetUnionControlType.UNKNOWN: 'Unknown'>, save_detected_map=True), ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=[], batch_mask_gallery=[], multi_inputs_gallery=[], generated_image=None, mask_image=None, hr_option=<HiResFixOption.BOTH: 'Both'>, enabled=False, module='None', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, advanced_weighting=None, pulid_mode=<PuLIDMode.FIDELITY: 'Fidelity'>, union_control_type=<ControlNetUnionControlType.UNKNOWN: 'Unknown'>, save_detected_map=True), ControlNetUnit(input_mode=<InputMode.SIMPLE: 'simple'>, use_preview_as_input=False, batch_image_dir='', batch_mask_dir='', batch_input_gallery=[], batch_mask_gallery=[], multi_inputs_gallery=[], generated_image=None, mask_image=None, hr_option=<HiResFixOption.BOTH: 'Both'>, enabled=False, module='None', model='None', weight=1, image=None, resize_mode=<ResizeMode.INNER_FIT: 'Crop and Resize'>, processor_res=-1, threshold_a=-1, threshold_b=-1, guidance_start=0, guidance_end=1, pixel_perfect=False, control_mode=<ControlMode.BALANCED: 'Balanced'>, advanced_weighting=None, pulid_mode=<PuLIDMode.FIDELITY: 'Fidelity'>, union_control_type=<ControlNetUnionControlType.UNKNOWN: 'Unknown'>, save_detected_map=True), False, 7, 1, 'Constant', 0, 'Constant', 0, 1, 'enable', 'MEAN', 'AD', 1, False, 1.01, 1.02, 0.99, 0.95, False, 0.5, 2, False, 256, 2, 0, False, False, False, True, True, False, True, 1, False, 5.5, 1, 1, False, 'Excellent_attention', True, 0, 'From preset', False, True, 1000, 7.5, True, 'hard', 8, 1000, 5, False, 'Single Scale', 7, False, False, 7, 5, 5, False, 3, 2, 0, 0.35, True, 'bicubic', 'bicubic', False, False, 'SD15', 'high (1536-2048)', 'bicubic', 'bicubic', False, 'SD15', '3', '8', 'percent', 0, 0.45, False, 'bicubic', 0, 0.3, '4', '8', 'bicubic', False, 'SD15', False, 'SD15', '3', '', '8', 'percent', 0, 0.45, False, 0, 'anisotropic', 0, 'reinhard', 100, 0, 'subtract', 0, 0, 'gaussian', 'add', 0, 100, 127, 0, 'hard_clamp', 5, 0, 'None', 'None', False, 'MultiDiffusion', 768, 768, 64, 4, False, False, False, 'Disabled', False, False, False, 'positive', 'comma', 0, False, False, 'start', '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, False, False, False, 0, False) {} Traceback (most recent call last): File "C:\StableDiffisiuon\stable-diffusion-webui-reForge\modules\call_queue.py", line 74, in f res = list(func(*args, **kwargs)) TypeError: 'NoneType' object is not iterable ---
I have updated the reForge and Nvidia Gpu driver.
Experiencing the same after updating.
Okay reverted the changes related to that, will try to implement it via another way when I can.
Should be fixed now.
@Panchovix Thanks. It works now.
Checklist
What happened?
If I use any kind of LORA it will give "TypeError: 'NoneType' object is not iterable" error.
Steps to reproduce the problem
What should have happened?
It should have been work as expected
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
sysinfo-2024-08-06-21-56.json
Console logs
Additional information
I have updated the reForge and Nvidia Gpu driver.