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.36k stars 382 forks source link

[Issue]: RuntimeError: "upsample_nearest2d_channels_last" not implemented for 'Half' #1591

Closed jwrossee closed 1 year ago

jwrossee commented 1 year ago

Issue Description

After successful installation running first generation. Thx for looking into it.

Version Platform Description

MacBook Pro M1, OSX 12.5.1 Chrome Version 114.0.5735.198 (Official Build) (arm64) Automatic Version: 3bcca6f9 Thu Jul 6 02:51:27 2023 +0300

sdnext.log 2023-07-06 18:43:23,221 | sd | INFO | launch | Starting SD.Next 2023-07-06 18:43:23,223 | sd | INFO | installer | Python 3.10.7 on Darwin 2023-07-06 18:43:23,233 | sd | INFO | installer | Version: 3bcca6f9 Thu Jul 6 02:51:27 2023 +0300 2023-07-06 18:43:26,608 | sd | DEBUG | installer | Setting environment tuning 2023-07-06 18:43:26,609 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False 2023-07-06 18:43:26,609 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True 2023-07-06 18:43:27,309 | sd | INFO | installer | Torch 2.0.1 2023-07-06 18:43:27,310 | sd | DEBUG | installer | Cannot install xformers package: local variable 'xformers_package' referenced before assignment 2023-07-06 18:43:27,310 | sd | DEBUG | installer | Package version not found: tensorflow 2023-07-06 18:43:27,310 | sd | INFO | installer | Installing package: tensorflow==2.12.0 2023-07-06 18:43:27,310 | sd | DEBUG | installer | Running pip: install --upgrade tensorflow==2.12.0 2023-07-06 18:43:27,760 | sd | WARNING | installer | Modified files: ['.DS_Store'] 2023-07-06 18:43:27,771 | sd | DEBUG | installer | Repository update time: Thu Jul 6 01:51:27 2023 2023-07-06 18:43:27,771 | sd | DEBUG | installer | Previous setup time: Thu Jul 6 17:45:15 2023 2023-07-06 18:43:27,772 | sd | INFO | installer | Enabled extensions-builtin: ['SwinIR', 'clip-interrogator-ext', 'sd-dynamic-thresholding', 'sd-webui-controlnet', 'ScuNET', 'stable-diffusion-webui-rembg', 'sd-webui-agent-scheduler', 'Lora', 'sd-extension-system-info', 'stable-diffusion-webui-images-browser', 'LDSR', 'multidiffusion-upscaler-for-automatic1111', 'a1111-sd-webui-lycoris'] 2023-07-06 18:43:27,774 | sd | INFO | installer | Enabled extensions: [] 2023-07-06 18:43:27,774 | sd | DEBUG | installer | Latest extensions time: Thu Jul 6 17:31:33 2023 2023-07-06 18:43:27,774 | sd | DEBUG | installer | Timestamps: version:1688601087 setup:1688658315 extension:1688657493 2023-07-06 18:43:27,774 | sd | INFO | launch | No changes detected: Quick launch active 2023-07-06 18:43:27,777 | sd | INFO | installer | Extension preload: 0.0s /Users/jr/Dev/automatic/extensions-builtin 2023-07-06 18:43:27,777 | sd | INFO | installer | Extension preload: 0.0s /Users/jr/Dev/automatic/extensions 2023-07-06 18:43:27,783 | sd | INFO | launch | Server arguments: [] 2023-07-06 18:43:30,177 | sd | INFO | webui | Libraries loaded 2023-07-06 18:43:30,179 | sd | INFO | webui | Using data path: /Users/jr/Dev/automatic 2023-07-06 18:43:30,180 | sd | INFO | sd_vae | Available VAEs: /Users/jr/Dev/automatic/models/VAE 0 2023-07-06 18:43:30,181 | sd | INFO | sd_models | Available models: /Users/jr/Dev/automatic/models/Stable-diffusion 1 2023-07-06 18:43:30,908 | ControlNet | INFO | controlnet_version | ControlNet v1.1.227 2023-07-06 18:43:30,971 | ControlNet | INFO | controlnet_version | ControlNet v1.1.227 2023-07-06 18:43:31,436 | sd | INFO | shared | Loading UI theme: name=black-orange style=Auto 2023-07-06 18:43:32,271 | sd | INFO | webui | Local URL: http://127.0.0.1:7860/ 2023-07-06 18:43:32,272 | sd | INFO | middleware | Initializing middleware 2023-07-06 18:43:32,342 | sd | INFO | task_runner | [AgentScheduler] Task queue is empty 2023-07-06 18:43:32,343 | sd | INFO | api | [AgentScheduler] Registering APIs 2023-07-06 18:43:32,538 | sd | WARNING | sd_models | Selected checkpoint not found: model.ckpt 2023-07-06 18:43:32,666 | sd | WARNING | sd_models | Loading fallback checkpoint: v1-5-pruned-emaonly.safetensors [6ce0161689] 2023-07-06 18:43:32,947 | sd | INFO | devices | Setting Torch parameters: dtype=torch.float32 vae=torch.float32 unet=torch.float32 2023-07-06 18:43:41,315 | sd | INFO | sd_hijack | Applying Doggettx cross attention optimization 2023-07-06 18:43:41,331 | sd | INFO | textual_inversion | Embeddings: loaded=0 skipped=0 2023-07-06 18:43:41,335 | sd | INFO | sd_models | Model loaded in 8.7s (load=0.3s create=0.7s apply=5.6s vae=1.5s move=0.5s) 2023-07-06 18:43:41,514 | sd | INFO | sd_models | Model load finished: {'ram': {'used': 3.96, 'total': 16.0}} cached=0 2023-07-06 18:43:41,524 | sd | INFO | webui | Startup time: 13.7s (torch=0.7s gradio=0.5s libraries=1.1s scripts=1.2s ui=0.7s launch=0.1s app-started=0.1s checkpoint=9.1s) 2023-07-06 18:43:54,610 | sd | ERROR | call_queue | Exception: "upsample_nearest2d_channels_last" not implemented for 'Half' 2023-07-06 18:43:54,612 | sd | ERROR | call_queue | Arguments: args=('task(s8l7ihdedg5p4wz)', 'a dog on a chair', '', [], 20, 0, False, False, 1, 1, 6, 1, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, [], 0, False, 'MultiDiffusion', False, True, 1024, 1024, 96, 96, 48, 4, 'None', 2, False, 10, 1, 1, 64, False, False, False, False, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 512, 64, True, True, True, False, False, 7, 100, 'Constant', 0, 'Constant', 0, 4, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x29ce6ada0>, False, False, 'positive', 'comma', 0, False, False, '', 0, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, False, None, None, False, 50) kwargs={} 2023-07-06 18:43:54,615 | sd | ERROR | errors | gradio call: RuntimeError

Acknowledgements

jwrossee commented 1 year ago

Upgrading to latest OSX 13.4.1 and installing python 3.10.9 fixed the issue. Also make sure you have your python and python3 aliases set up correctly in your ∼/.zshrc

jwrossee commented 1 year ago

Closing as resolved.