Closed shelly-luo closed 1 year ago
I put SwinIR_4x.pth into the stable-diffusive-webui /models/ESRGAN folder and it doesn't seem to work.
I don't know
KeyError: 'trunk_conv.weight' Time taken: 1m 0.09s
MacOS
Google Chrome
no
To create a public link, set `share=True` in `launch()`. Startup time: 1.0s (list extensions: 0.5s, load scripts: 0.3s, create ui: 0.1s). 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:56<00:00, 2.83s/it] Error completing request██████████████████▌ | 24/30 [21:40<00:18, 3.03s/it] Arguments: ('task(dm7irrnphn0vbnb)', 'masterpiece, best quality, 1girl, solo, long_hair, looking_at_viewer, white hair, red eyes, smile, bangs, skirt, shirt, long_sleeves, hat, dress, bow, holding, closed_mouth, flower, frills, hair_flower, petals, bouquet, holding_flower, center_frills, bonnet, holding_bouquet, tachi-e, full body, white background, <lora:standingFullBodyWithBackgroundStyle_v10Offset:1>', 'EasyNegative,', [], 20, 16, False, False, 1, 1, 7, 515979332.0, -1.0, 0, 0, 0, False, 768, 512, True, 0.5, 2.5, 'SwinIR_4x', 10, 0, 0, ['Negative guidance minimum sigma: 0.0'], 0, False, '', 0, False, 7, 100, 'Constant', 0, 'Constant', 0, 4, False, False, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, None, 'Refresh models', <scripts.external_code.ControlNetUnit object at 0x2a3a6f850>, False, '', 0.5, True, False, '', 'Lerp', False, False, 1, 0.15, False, 'OUT', ['OUT'], 5, 0, 'Bilinear', False, 'Pooling Max', False, 'Lerp', '', '', False, False, False, 'positive', 'comma', 0, False, False, '', 1, '', 0, '', 0, '', True, False, False, False, 0, None, False, 50) {} Traceback (most recent call last): File "/Users/shelly/Documents/stable-diffusion-webui/modules/call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "/Users/shelly/Documents/stable-diffusion-webui/modules/call_queue.py", line 37, in f res = func(*args, **kwargs) File "/Users/shelly/Documents/stable-diffusion-webui/modules/txt2img.py", line 56, in txt2img processed = process_images(p) File "/Users/shelly/Documents/stable-diffusion-webui/modules/processing.py", line 519, in process_images res = process_images_inner(p) File "/Users/shelly/Documents/stable-diffusion-webui/modules/processing.py", line 674, in process_images_inner samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts) File "/Users/shelly/Documents/stable-diffusion-webui/modules/processing.py", line 934, in sample image = images.resize_image(0, image, target_width, target_height, upscaler_name=self.hr_upscaler) File "/Users/shelly/Documents/stable-diffusion-webui/modules/images.py", line 275, in resize_image res = resize(im, width, height) File "/Users/shelly/Documents/stable-diffusion-webui/modules/images.py", line 267, in resize im = upscaler.scaler.upscale(im, scale, upscaler.data_path) File "/Users/shelly/Documents/stable-diffusion-webui/modules/upscaler.py", line 63, in upscale img = self.do_upscale(img, selected_model) File "/Users/shelly/Documents/stable-diffusion-webui/modules/esrgan_model.py", line 150, in do_upscale model = self.load_model(selected_model) File "/Users/shelly/Documents/stable-diffusion-webui/modules/esrgan_model.py", line 184, in load_model state_dict = mod2normal(state_dict) File "/Users/shelly/Documents/stable-diffusion-webui/modules/esrgan_model.py", line 36, in mod2normal crt_net['model.1.sub.23.weight'] = state_dict['trunk_conv.weight'] KeyError: 'trunk_conv.weight'
No response
Is there an existing issue for this?
What happened?
I put SwinIR_4x.pth into the stable-diffusive-webui /models/ESRGAN folder and it doesn't seem to work.
Steps to reproduce the problem
I don't know
What should have happened?
I don't know
Commit where the problem happens
KeyError: 'trunk_conv.weight' Time taken: 1m 0.09s
What platforms do you use to access the UI ?
MacOS
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
Console logs
Additional information
No response