vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.64k stars 415 forks source link

[Issue]: Sending info from gallery from A1111 gen causes error - steps counted as batch size #3510

Open Targren opened 14 hours ago

Targren commented 14 hours ago

Issue Description

When sending an old image (originally generated in A1111) back to the "Text" generation tab to revisit and mess with it again, and attempting to generate it, the process may fail with a strange error in the log (attached) "You have passed a list of generators of length 1, but requested an effective batch size of X. Make sure the batch size matches the length of the generators." Where "X" is the number of steps selecetd.

I am removing the LORA from the original prompt and fixing the old sampler selection before attempting the generation, but the problem persists, and isn't not reproducible on all images. One such image is attached to the issue.

Version Platform Description

SD.Next a57acc79 Win10 + StabilityMatrix 2.12.2 Chrome / Firefox / Vivaldi

20:14:52-684296 INFO Starting SD.Next
20:14:52-687227 INFO Logger: file="E:\A1111 Web
UI\StabilityMatrixData\Packages\SD.Next\sdnext.log"
level=INFO size=772240 mode=append
20:14:52-688203 INFO Python: version=3.10.11 platform=Windows bin="E:\A1111 Web
UI\StabilityMatrixData\Packages\SD.Next\venv\Scripts\p ython.exe" venv="E:\A1111 Web
UI\StabilityMatrixData\Packages\SD.Next\venv"
20:14:52-900207 INFO Version: app=sd.next updated=2024-10-23 hash=a57acc79 branch=master
url=https://github.com/vladmandic/automatic/tree/maste r ui=main
20:14:53-335087 INFO Repository latest available
0d332ca7111215fa9128630112ce63a1380ae5c1
2024-10-23T18:59:10Z
20:14:53-342900 INFO Platform: arch=AMD64 cpu=Intel64 Family 6 Model 151
Stepping 2, GenuineIntel system=Windows
release=Windows-10-10.0.19045-SP0 python=3.10.11
20:14:53-357126 INFO CUDA: nVidia toolkit detected
20:14:53-785013 INFO Verifying requirements
20:14:53-787943 INFO Verifying packages
20:14:53-880723 INFO Extensions: disabled=['sdnext-modernui']
20:14:53-881700 INFO Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
'sd-webui-agent-scheduler',
'stable-diffusion-webui-rembg'] extensions-builtin
20:14:53-893417 INFO Extensions:
enabled=['sd-webui-infinite-image-browsing']
extensions
20:14:53-899275 INFO Startup: standard
20:14:53-899275 INFO Verifying submodules
20:15:12-453454 INFO

Extensions enabled: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
'sd-webui-agent-scheduler',
'stable-diffusion-webui-rembg',
'sd-webui-infinite-image-browsing']

Relevant log output

08:22:46-204660 INFO     Verifying requirements                                
08:22:46-206614 DEBUG    Setup complete without errors: 1729772566             
08:22:46-210521 DEBUG    Extension preload: {'extensions-builtin': 0.0,        
                         'extensions': 0.0}                                    
08:22:46-211497 DEBUG    Starting module: <module 'webui' from 'E:\\A1111 Web  
                         UI\\StabilityMatrixData\\Packages\\SD.Next\\webui.py'>
08:22:46-212474 INFO     Command line args: ['--medvram', '--use-cuda',        
                         '--listen', '--insecure', '--debug'] medvram=True     
                         insecure=True listen=True use_cuda=True debug=True    
08:22:46-213452 DEBUG    Env flags: []                                         
08:22:46-216380 WARNING  Disabling cuDNN for SDP on torch=2.5.0+cu124          
08:22:57-562325 INFO     System packages: {'torch': '2.5.0+cu124', 'diffusers':
                         '0.32.0.dev0', 'gradio': '3.43.2', 'transformers':    
                         '4.45.2', 'accelerate': '1.0.0'}                      
08:22:57-938329 DEBUG    Huggingface cache:                                    
                         folder="C:\Users\Ciro\.cache\huggingface\hub"         
08:22:58-034029 DEBUG    Read: file="config.json" json=35 bytes=1622 time=0.000
08:22:58-035983 INFO     Engine: backend=Backend.DIFFUSERS compute=cuda        
                         device=cuda attention="xFormers" mode=no_grad         
08:22:58-036959 DEBUG    Read: file="html\reference.json" json=58 bytes=30996  
                         time=0.000                                            
08:22:58-077974 INFO     Torch parameters: backend=cuda device=cuda config=Auto
                         dtype=torch.bfloat16 vae=torch.bfloat16               
                         unet=torch.bfloat16 context=no_grad nohalf=False      
                         nohalfvae=False upscast=False deterministic=False     
                         test-fp16=True test-bf16=True optimization="xFormers" 
08:22:58-343537 DEBUG    ONNX: version=1.19.2 provider=CUDAExecutionProvider,  
                         available=['AzureExecutionProvider',                  
                         'CPUExecutionProvider']                               
08:22:58-430048 INFO     Device: device=NVIDIA GeForce RTX 3070 Ti n=1         
                         arch=sm_90 capability=(8, 6) cuda=12.4 cudnn=90100    
                         driver=546.33                                         
08:22:58-509147 DEBUG    Importing LDM                                         
08:22:58-518914 DEBUG    Entering start sequence                               
08:22:58-520866 DEBUG    Initializing                                          
08:22:58-556091 INFO     Available VAEs: path="models\VAE" items=6             
08:22:58-557069 INFO     Available UNets: path="models\UNET" items=0           
08:22:58-558046 INFO     Available TEs: path="models\Text-encoder" items=0     
08:22:58-559023 INFO     Disabled extensions: ['sdnext-modernui']              
08:22:58-560976 INFO     Removing empty folder: models\BSRGAN                  
08:22:58-570740 DEBUG    Read: file="cache.json" json=2 bytes=912 time=0.000   
08:22:58-584412 DEBUG    Read: file="metadata.json" json=1147 bytes=4095586    
                         time=0.012                                            
08:22:58-598083 DEBUG    Scanning diffusers cache: folder="models\Diffusers"   
                         items=0 time=0.00                                     
08:22:58-599061 INFO     Available Models: path="models\Stable-diffusion"      
                         items=174 time=0.04                                   
08:22:58-661557 INFO     Available Yolo: path="models\yolo items=6 downloaded=1
08:22:58-662535 DEBUG    Load extensions                                       
08:22:59-056327 INFO     Extension:                                            
                         script='extensions-builtin\Lora\scripts\lora_script.py
                         ' 08:22:58-914728 INFO       
                         Available LoRAs: items=966            
                         folders=8                             
08:22:59-369804 INFO     Extension:                                            
                         script='extensions-builtin\sd-webui-agent-scheduler\sc
                         ripts\task_scheduler.py' Using sqlite file:           
                         extensions-builtin\sd-webui-agent-scheduler\task_sched
                         uler.sqlite3                                          
08:22:59-397147 DEBUG    Extensions init time: 0.73 Lora=0.34                  
                         sd-webui-agent-scheduler=0.27                         
08:22:59-410817 DEBUG    Read: file="html/upscalers.json" json=4 bytes=2672    
                         time=0.000                                            
08:22:59-412771 DEBUG    Read:                                                 
                         file="extensions-builtin\sd-extension-chainner\models.
                         json" json=24 bytes=2719 time=0.000                   
08:22:59-414729 DEBUG    chaiNNer models: path="models\chaiNNer" defined=24    
                         discovered=0 downloaded=0                             
08:22:59-416678 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="1x_ReFocus_V3_140000_G"                        
                         path="models\ESRGAN\1x_ReFocus_V3_140000_G.pth"       
08:22:59-417654 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="4x-ClearRealityV1"                             
                         path="models\ESRGAN\4x-ClearRealityV1.pth"            
08:22:59-418631 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="4x-Rybu" path="models\ESRGAN\4x-Rybu.pth"      
08:22:59-419607 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="4x-UltraSharp"                                 
                         path="models\ESRGAN\4x-UltraSharp.pth"                
08:22:59-419607 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="4x_foolhardy_Remacri"                          
                         path="models\ESRGAN\4x_foolhardy_Remacri.pth"         
08:22:59-420583 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="4x_foolhardy_Remacri_ExtraSmoother"            
                         path="models\ESRGAN\4x_foolhardy_Remacri_ExtraSmoother
                         .pth"                                                 
08:22:59-422537 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="ESRGAN_4x" path="models\ESRGAN\ESRGAN_4x.pth"  
08:22:59-424489 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="lollypop" path="models\ESRGAN\lollypop.pth"    
08:22:59-425467 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="NMKD2x_CX_100k"                                
                         path="models\ESRGAN\NMKD2x_CX_100k.pth"               
08:22:59-427420 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="RealESRGAN_x2plus"                             
                         path="models\ESRGAN\RealESRGAN_x2plus.pth"            
08:22:59-428396 DEBUG    Upscaler type=ESRGAN folder="models\ESRGAN"           
                         model="TGHQFace8x_500k"                               
                         path="models\ESRGAN\TGHQFace8x_500k.pth"              
08:22:59-430350 DEBUG    Upscaler type=SwinIR folder="models\SwinIR"           
                         model="SwinIR_4x" path="models\SwinIR\SwinIR_4x.pth"  
08:22:59-432302 INFO     Available Upscalers: items=65 downloaded=15 user=12   
                         time=0.03 types=['None', 'Lanczos', 'Nearest',        
                         'ChaiNNer', 'AuraSR', 'ESRGAN', 'LDSR', 'RealESRGAN', 
                         'SCUNet', 'SD', 'SwinIR']                             
08:22:59-444021 INFO     Available Styles: folder="models\styles" items=288    
                         time=0.01                                             
08:22:59-447927 DEBUG    Creating UI                                           
08:22:59-448902 DEBUG    UI themes available: type=Standard themes=12          
08:22:59-449880 INFO     UI theme: type=Standard name="black-teal"             
08:22:59-454761 DEBUG    UI theme: css="E:\A1111 Web                           
                         UI\StabilityMatrixData\Packages\SD.Next\javascript\bla
                         ck-teal.css" base="sdnext.css" user="None"            
08:22:59-457692 DEBUG    UI initialize: txt2img                                
08:23:00-064052 DEBUG    Networks: page='model' items=231 subfolders=34        
                         tab=txt2img folders=['models\\Stable-diffusion',      
                         'models\\Diffusers', 'models\\Reference'] list=0.37   
                         thumb=0.24 desc=0.07 info=0.35 workers=8 sort=Default 
08:23:00-127526 DEBUG    Networks: page='lora' items=966 subfolders=51         
                         tab=txt2img folders=['models\\Lora',                  
                         'models\\LyCORIS'] list=0.57 thumb=0.22 desc=0.29     
                         info=1.26 workers=8 sort=Default                      
08:23:00-136316 DEBUG    Networks: page='style' items=288 subfolders=1         
                         tab=txt2img folders=['models\\styles', 'html']        
                         list=0.11 thumb=0.01 desc=0.00 info=0.00 workers=8    
                         sort=Default                                          
08:23:00-148035 DEBUG    Networks: page='embedding' items=58 subfolders=8      
                         tab=txt2img folders=['models\\embeddings'] list=0.23  
                         thumb=0.08 desc=0.01 info=0.03 workers=8 sort=Default 
08:23:00-152918 DEBUG    Networks: page='vae' items=6 subfolders=1 tab=txt2img 
                         folders=['models\\VAE'] list=0.05 thumb=0.03 desc=0.01
                         info=0.00 workers=8 sort=Default                      
08:23:00-157806 DEBUG    Networks: page='history' items=0 subfolders=0         
                         tab=txt2img folders=[] list=0.00 thumb=0.00 desc=0.00 
                         info=0.00 workers=8 sort=Default                      
08:23:00-247641 DEBUG    UI initialize: img2img                                
08:23:00-350177 DEBUG    UI initialize: control models=models\control          
08:23:00-756949 DEBUG    Read: file="ui-config.json" json=3 bytes=93 time=0.000
08:23:00-869249 DEBUG    UI themes available: type=Standard themes=12          
08:23:01-526040 DEBUG    Extension list: processed=394 installed=7 enabled=6   
                         disabled=1 visible=394 hidden=0                       
08:23:01-626150 DEBUG    Root paths: ['E:\\A1111 Web                           
                         UI\\StabilityMatrixData\\Packages\\SD.Next']          
08:23:03-699927 INFO     Local URL: http://localhost:7860/                     
08:23:03-701885 DEBUG    Gradio functions: registered=1910                     
08:23:03-704808 DEBUG    FastAPI middleware: ['Middleware', 'Middleware']      
08:23:03-708713 DEBUG    Creating API                                          
08:23:03-986614 INFO     [AgentScheduler] Task queue is empty                  
08:23:03-987590 INFO     [AgentScheduler] Registering APIs                     
IIB Database file has been successfully backed up to the backup folder.
08:23:04-091105 DEBUG    Scripts setup: ['IP Adapters:0.02', 'XYZ Grid:0.021', 
                         'Face:0.013', 'AnimateDiff:0.006', 'CogVideoX:0.006', 
                         'Image-to-Video:0.008']                               
08:23:04-092080 DEBUG    Model metadata: file="metadata.json" no changes       
08:23:04-094034 DEBUG    Model requested: fn=run:<lambda>                      
08:23:04-095011 INFO     Load model: select="00. Favorites\Pony\cabbalio_v20   
                         [aecf26f5e2]"                                         
08:23:04-097940 INFO     Autodetect model: detect="Stable Diffusion XL"        
                         class=StableDiffusionXLPipeline file="E:\A1111 Web    
                         UI\StabilityMatrixData\Packages\SD.Next\models\Stable-
                         diffusion\00. Favorites\Pony\cabbalio_v20.safetensors"
                         size=6617MB                                           
Diffusers  2.59it/s ████████ 100% 7/7 00:02 00:00 Loading pipeline components...
08:23:07-188391 DEBUG    Setting model: pipeline=StableDiffusionXLPipeline     
                         config={'low_cpu_mem_usage': True, 'torch_dtype':     
                         torch.bfloat16, 'load_connected_pipeline': True,      
                         'extract_ema': False, 'config': 'configs/sdxl',       
                         'use_safetensors': True, 'cache_dir':                 
                         'C:\\Users\\Ciro\\.cache\\huggingface\\hub'}          
08:23:11-746456 INFO     Load network: type=embeddings loaded=4 skipped=54     
                         time=4.56                                             
08:23:11-747432 DEBUG    Setting model: component=VAE slicing=True             
08:23:11-748409 DEBUG    Setting model: component=VAE tiling=True              
08:23:11-749386 DEBUG    Setting model: attention="xFormers"                   
08:23:11-856804 DEBUG    Setting model: offload=model                          
08:23:11-881843 DEBUG    Read: file="E:\A1111 Web                              
                         UI\StabilityMatrixData\Packages\SD.Next\configs\sdxl\v
                         ae\config.json" json=15 bytes=674 time=0.000          
08:23:12-056800 DEBUG    GC: utilization={'gpu': 14, 'ram': 12, 'threshold':   
                         80} gc={'collected': 8644, 'saved': 0.0}              
                         before={'gpu': 1.09, 'ram': 7.69} after={'gpu': 1.09, 
                         'ram': 7.69, 'retries': 0, 'oom': 0} device=cuda      
                         fn=reload_model_weights:load_diffuser time=0.17       
08:23:12-065590 INFO     Load model: time=7.79 load=3.09 embeddings=4.56       
                         options=0.11 native=1024 memory={'ram': {'used': 7.69,
                         'total': 63.81}, 'gpu': {'used': 1.09, 'total': 8.0}, 
                         'retries': 0, 'oom': 0}                               
08:23:12-068518 DEBUG    Script callback init time:                            
                         system-info.py:app_started=0.20                       
                         task_scheduler.py:app_started=0.10                    
08:23:12-070473 DEBUG    Save: file="config.json" json=35 bytes=1568 time=0.002
08:23:12-071449 INFO     Startup time: 25.85 torch=10.09 gradio=0.62           
                         diffusers=0.07 libraries=1.49 extensions=0.73         
                         detailer=0.06 ui-networks=0.81 ui-txt2img=0.07        
                         ui-img2img=0.07 ui-control=0.12 ui-extras=0.17        
                         ui-settings=0.23 ui-extensions=0.57 ui-defaults=0.05  
                         launch=2.11 api=0.07 app-started=0.31 checkpoint=7.98 
08:24:00-101274 DEBUG    Server: alive=True jobs=1 requests=11 uptime=62       
                         memory=7.69/63.81 backend=Backend.DIFFUSERS state=idle
08:24:18-724491 DEBUG    Paste prompt: type="current" prompt="full-body digital
                         render of a sexy metallic cyborg woman with (flowing  
                         luminescent silver hair) and (thick cables attached to
                         her head:1.3), (chromatic blue skin:1.3), flesh       
                         cleavage, flesh thigh, wearing blacklight,            
                         [makeup:circuitry:0.5], bright eyes, (portrait:1.1),  
                         (facing the camera:1.2), (looking at the viewer:1.2), 
                         depth of field, luminal, extremely detailed,          
                         desaturated, color balance, white point, void dark    
                         energy, plasma                                        

                         <lora:weight_slider_v1:1.3>                           
                         Negative prompt: BadDream Asian                       
                         Steps: 40, Sampler: DPM++ 2M Karras, CFG scale: 7,    
                         Seed: 3314727492, Size: 512x768, Model hash:          
                         4a97f316fa, Model: arthemyReal_v10, Denoising         
                         strength: 0.4, ADetailer model: face_yolov8n.pt,      
                         ADetailer confidence: 0.65, ADetailer dilate erode: 4,
                         ADetailer mask blur: 4, ADetailer denoising strength: 
                         0.4, ADetailer inpaint only masked: True, ADetailer   
                         inpaint padding: 32, ADetailer version: 23.11.1, Hires
                         upscale: 2, Hires steps: 20, Hires upscaler:          
                         SwinIR_4x, Lora hashes: "weight_slider_v1:            
                         0c2cdacf423d", TI hashes: "BadDream: 758aac443515",   
                         Version: v1.7.0"                                      
08:25:06-869893 INFO     Base: class=StableDiffusionXLPipeline                 
08:25:06-871845 DEBUG    Sampler: sampler="DPM++ 2M"                           
                         class="DPMSolverMultistepScheduler                    
                         config={'num_train_timesteps': 1000, 'beta_start':    
                         0.00085, 'beta_end': 0.012, 'beta_schedule':          
                         'scaled_linear', 'prediction_type': 'epsilon',        
                         'thresholding': False, 'sample_max_value': 1.0,       
                         'algorithm_type': 'dpmsolver++', 'solver_type':       
                         'midpoint', 'lower_order_final': True,                
                         'use_karras_sigmas': True, 'final_sigmas_type':       
                         'zero', 'timestep_spacing': 'leading', 'solver_order':
                         2}                                                    
08:25:18-982069 DEBUG    Torch generator: device=cuda seeds=[4111659962]       
08:25:18-983045 DEBUG    Diffuser pipeline: StableDiffusionXLPipeline          
                         task=DiffusersTaskType.TEXT_2_IMAGE batch=1/1x1       
                         set={'prompt_embeds': torch.Size([40, 154, 2048]),    
                         'pooled_prompt_embeds': torch.Size([40, 1280]),       
                         'negative_prompt_embeds': torch.Size([40, 154, 2048]),
                         'negative_pooled_prompt_embeds': torch.Size([40,      
                         1280]), 'guidance_scale': 7, 'num_inference_steps':   
                         40, 'eta': 1.0, 'guidance_rescale': 0.7,              
                         'denoising_end': None, 'output_type': 'latent',       
                         'width': 768, 'height': 576, 'parser': 'Full parser'} 
08:25:19-111982 ERROR    Processing: args={'prompt_embeds': tensor([[[-2.4375, 
                         -2.3281, -1.5625,  ..., -0.4199, -0.3496, -0.1328],   
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000]],                                    

                                 [[-2.4375, -2.3281, -1.5625,  ..., -0.4199,   
                         -0.3496, -0.1328],                                    
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000]],                                    

                                 [[-2.4375, -2.3281, -1.5625,  ..., -0.4199,   
                         -0.3496, -0.1328],                                    
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000],                                     
                                  [ 0.0000,  0.0000,  0.0000,  ...,  0.0000,   
                         0.0000,  0.0000]],                                    

                                 ...,                                          

                                 [[-2.4375, -2.3281, -1.5625,  ..., -0.4199,   
                         -0.3496, -0.1328],                                    
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.1318,  0.1553,  0.0039,  ...,  0.7109,   
                         -0.1621,  0.2051],                                    
                                  [ 0.1377,  0.1494, -0.0098,  ...,  0.1318,   
                         -0.4863,  0.1279],                                    
                                  [ 0.1074,  0.2021,  0.0215,  ...,  0.7109,   
                         -0.1719,  0.2236]],                                   

                                 [[-2.4375, -2.3281, -1.5625,  ..., -0.4199,   
                         -0.3496, -0.1328],                                    
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.1318,  0.1553,  0.0039,  ...,  0.7109,   
                         -0.1621,  0.2051],                                    
                                  [ 0.1377,  0.1494, -0.0098,  ...,  0.1318,   
                         -0.4863,  0.1279],                                    
                                  [ 0.1074,  0.2021,  0.0215,  ...,  0.7109,   
                         -0.1719,  0.2236]],                                   

                                 [[-2.4375, -2.3281, -1.5625,  ..., -0.4199,   
                         -0.3496, -0.1328],                                    
                                  [-0.0269,  0.0234, -0.0039,  ...,  0.0078,   
                         -0.2070, -0.0889],                                    
                                  [ 0.0215, -0.0195, -0.0488,  ...,  0.2168,   
                         -0.0859, -0.1094],                                    
                                  ...,                                         
                                  [ 0.1318,  0.1553,  0.0039,  ...,  0.7109,   
                         -0.1621,  0.2051],                                    
                                  [ 0.1377,  0.1494, -0.0098,  ...,  0.1318,   
                         -0.4863,  0.1279],                                    
                                  [ 0.1074,  0.2021,  0.0215,  ...,  0.7109,   
                         -0.1719,  0.2236]]],                                  
                                device='cuda:0', dtype=torch.bfloat16),        
                         'pooled_prompt_embeds': tensor([[ 0.4297,  0.0359,    
                         0.3750,  ...,  0.1123,  0.2412, -0.2969],             
                                 [ 0.4297,  0.0359,  0.3750,  ...,  0.1123,    
                         0.2412, -0.2969],                                     
                                 [ 0.4297,  0.0359,  0.3750,  ...,  0.1123,    
                         0.2412, -0.2969],                                     
                                 ...,                                          
                                 [ 0.4258,  0.0510,  0.3848,  ...,  0.1196,    
                         0.2363, -0.2949],                                     
                                 [ 0.4258,  0.0510,  0.3848,  ...,  0.1196,    
                         0.2363, -0.2949],                                     
                                 [ 0.4258,  0.0510,  0.3848,  ...,  0.1196,    
                         0.2363, -0.2949]],                                    
                                device='cuda:0', dtype=torch.bfloat16),        
                         'negative_prompt_embeds': tensor([[[-2.4375e+00,      
                         -2.3281e+00, -1.5625e+00,  ..., -4.1992e-01,          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00]],                 

                                 [[-2.4375e+00, -2.3281e+00, -1.5625e+00,  ...,
                         -4.1992e-01,                                          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00]],                 

                                 [[-2.4375e+00, -2.3281e+00, -1.5625e+00,  ...,
                         -4.1992e-01,                                          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00],                  
                                  [ 0.0000e+00,  0.0000e+00,  0.0000e+00,  ...,
                         0.0000e+00,                                           
                                    0.0000e+00,  0.0000e+00]],                 

                                 ...,                                          

                                 [[-2.4375e+00, -2.3281e+00, -1.5625e+00,  ...,
                         -4.1992e-01,                                          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 1.3086e-01,  1.5918e-01,  1.9531e-03,  ...,
                         7.8125e-01,                                           
                                   -1.4453e-01,  2.1875e-01],                  
                                  [ 1.3770e-01,  1.4746e-01, -9.7656e-03,  ...,
                         1.6211e-01,                                           
                                   -4.6875e-01,  1.2891e-01],                  
                                  [ 1.1230e-01,  2.0605e-01,  2.5391e-02,  ...,
                         7.5781e-01,                                           
                                   -1.6211e-01,  2.5586e-01]],                 

                                 [[-2.4375e+00, -2.3281e+00, -1.5625e+00,  ...,
                         -4.1992e-01,                                          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 1.3086e-01,  1.5918e-01,  1.9531e-03,  ...,
                         7.8125e-01,                                           
                                   -1.4453e-01,  2.1875e-01],                  
                                  [ 1.3770e-01,  1.4746e-01, -9.7656e-03,  ...,
                         1.6211e-01,                                           
                                   -4.6875e-01,  1.2891e-01],                  
                                  [ 1.1230e-01,  2.0605e-01,  2.5391e-02,  ...,
                         7.5781e-01,                                           
                                   -1.6211e-01,  2.5586e-01]],                 

                                 [[-2.4375e+00, -2.3281e+00, -1.5625e+00,  ...,
                         -4.1992e-01,                                          
                                   -3.4961e-01, -1.3281e-01],                  
                                  [ 5.8984e-01,  1.0840e-01, -2.8125e-01,  ...,
                         2.1875e-01,                                           
                                   -3.7109e-02,  2.7344e-01],                  
                                  [ 3.3984e-01,  2.3828e-01,  1.9336e-01,  ...,
                         1.1875e+00,                                           
                                    3.0078e-01,  1.5625e-01],                  
                                  ...,                                         
                                  [ 1.3086e-01,  1.5918e-01,  1.9531e-03,  ...,
                         7.8125e-01,                                           
                                   -1.4453e-01,  2.1875e-01],                  
                                  [ 1.3770e-01,  1.4746e-01, -9.7656e-03,  ...,
                         1.6211e-01,                                           
                                   -4.6875e-01,  1.2891e-01],                  
                                  [ 1.1230e-01,  2.0605e-01,  2.5391e-02,  ...,
                         7.5781e-01,                                           
                                   -1.6211e-01,  2.5586e-01]]],                
                         device='cuda:0', dtype=torch.bfloat16),               
                         'negative_pooled_prompt_embeds': tensor([[ 0.5078,    
                         0.1167,  0.4570,  ...,  0.1138,  0.1660, -0.2422],    
                                 [ 0.5078,  0.1167,  0.4570,  ...,  0.1138,    
                         0.1660, -0.2422],                                     
                                 [ 0.5078,  0.1167,  0.4570,  ...,  0.1138,    
                         0.1660, -0.2422],                                     
                                 ...,                                          
                                 [ 0.5078,  0.1167,  0.4570,  ...,  0.1138,    
                         0.1660, -0.2422],                                     
                                 [ 0.5078,  0.1167,  0.4570,  ...,  0.1138,    
                         0.1660, -0.2422],                                     
                                 [ 0.5078,  0.1167,  0.4570,  ...,  0.1138,    
                         0.1660, -0.2422]],                                    
                                device='cuda:0', dtype=torch.bfloat16),        
                         'guidance_scale': 7, 'generator': [<torch._C.Generator
                         object at 0x0000027820FFC0F0>],                       
                         'callback_on_step_end': <function diffusers_callback  
                         at 0x00000278913C5FC0>,                               
                         'callback_on_step_end_tensor_inputs': ['latents',     
                         'prompt_embeds', 'negative_prompt_embeds',            
                         'add_text_embeds', 'add_time_ids',                    
                         'negative_pooled_prompt_embeds',                      
                         'negative_add_time_ids'], 'num_inference_steps': 40,  
                         'eta': 1.0, 'guidance_rescale': 0.7, 'denoising_end': 
                         None, 'output_type': 'latent', 'width': 768, 'height':
                         576} You have passed a list of generators of length 1,
                         but requested an effective batch size of 40. Make sure
                         the batch size matches the length of the generators.  
08:25:19-138314 ERROR    Processing: ValueError                                
┌───────────────────── Traceback (most recent call last) ─────────────────────┐
│ E:\A1111 Web UI\StabilityMatrixData\Packages\SD.Next\modules\processing_dif │
│                                                                             │
│    98 │   │   else:                                                         │
│ >  99 │   │   │   output = shared.sd_model(**base_args)                     │
│   100 │   │   if isinstance(output, dict):                                  │
│                                                                             │
│ E:\A1111 Web UI\StabilityMatrixData\Packages\SD.Next\venv\lib\site-packages │
│                                                                             │
│   115 │   │   with ctx_factory():                                           │
│ > 116 │   │   │   return func(*args, **kwargs)                              │
│   117                                                                       │
│                                                                             │
│ E:\A1111 Web UI\StabilityMatrixData\Packages\SD.Next\venv\lib\site-packages │
│                                                                             │
│   1111 │   │   num_channels_latents = self.unet.config.in_channels          │
│ > 1112 │   │   latents = self.prepare_latents(                              │
│   1113 │   │   │   batch_size * num_images_per_prompt,                      │
│                                                                             │
│ E:\A1111 Web UI\StabilityMatrixData\Packages\SD.Next\venv\lib\site-packages │
│                                                                             │
│    714 │   │   if isinstance(generator, list) and len(generator) != batch_s │
│ >  715 │   │   │   raise ValueError(                                        │
│    716 │   │   │   │   f"You have passed a list of generators of length {le │
└─────────────────────────────────────────────────────────────────────────────┘
ValueError: You have passed a list of generators of length 1, but requested an effective batch size of 40. Make sure the batch size matches the length of the generators.
08:25:19-285769 INFO     Processed: images=0 its=0.00 time=12.50               
                         timers={'prepare': 0.09, 'encode': 11.87, 'args':     
                         12.17, 'process': 0.23} memory={'ram': {'used': 8.18, 
                         'total': 63.81}, 'gpu': {'used': 1.33, 'total': 8.0}, 
                         'retries': 0, 'oom': 0}                               
08:26:00-167114 DEBUG    Server: alive=True jobs=1 requests=63 uptime=182      
                         memory=8.18/63.81 backend=Backend.DIFFUSERS state=idle

Backend

Diffusers

UI

Standard

Branch

Master

Model

StableDiffusion XL

Acknowledgements

vladmandic commented 3 hours ago
Targren commented 3 hours ago

Weird that the image had no metadata (I believe you, just weird)

Here's a link to the image on civitai, in case it's got stripped somewhere. https://civitai.com/posts/8292747

I'm just finding the image in the Gallery and hitting the "-> Text" button.

I'm grabbing the latest update, then I'll get the fresh debug log.

Targren commented 2 hours ago

I've edited the log in the main issue with the debug log.

vladmandic commented 1 hour ago

reproduced and fixed in dev branch, will refresh master soon.