mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
fix model detect
This commit is contained in:
@@ -120,6 +120,7 @@ it is time to give credit to original [author](https://github.com/auTOMATIC1111)
|
||||
- Updated all system requirements
|
||||
- UI log monitor will auto-reconnect to server on server restart
|
||||
- UI styles includes indicator for active styles
|
||||
- Secondary sampler add option "same as primary"
|
||||
- Support controlnet manually downloads models in both standalone and diffusers format
|
||||
For standalone, simply copy safetensors file to `models/control/controlnet` folder
|
||||
For diffusers format, create folder with model name in `models/control/controlnet/`
|
||||
|
||||
@@ -15,6 +15,7 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma
|
||||
### Features
|
||||
|
||||
- hidiffusion img2img: <https://github.com/megvii-research/HiDiffusion/commit/1050418bef914b3bd1f2de6faa162abf36b52fb3>
|
||||
- animatediff-sdxl <https://github.com/huggingface/diffusers/pull/6721>
|
||||
- async lowvram: <https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14855>
|
||||
- fp8: <https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/14031>
|
||||
- init latents: variations, img2img
|
||||
|
||||
@@ -9,5 +9,6 @@ def is_sd15(model):
|
||||
def is_sdxl(model):
|
||||
if model is None:
|
||||
return False
|
||||
return model.__name__ == p.StableDiffusionXLPipeline.__name__ or model.__name__ == p.StableDiffusionXLImg2ImgPipeline.__name__ or model.__name__ == p.StableDiffusionXLInpaintPipeline.__name__
|
||||
# return isinstance(model, p.StableDiffusionXLPipeline) or isinstance(model, p.StableDiffusionXLImg2ImgPipeline) or isinstance(model, p.StableDiffusionXLInpaintPipeline)
|
||||
if hasattr(model, '__name__'):
|
||||
return model.__name__ == p.StableDiffusionXLPipeline.__name__ or model.__name__ == p.StableDiffusionXLImg2ImgPipeline.__name__ or model.__name__ == p.StableDiffusionXLInpaintPipeline.__name__
|
||||
return isinstance(model, p.StableDiffusionXLPipeline) or isinstance(model, p.StableDiffusionXLImg2ImgPipeline) or isinstance(model, p.StableDiffusionXLInpaintPipeline)
|
||||
|
||||
Reference in New Issue
Block a user