mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
+1
-1
@@ -459,7 +459,7 @@ def check_python(supported_minors=[9, 10, 11, 12], reason=None):
|
||||
def check_diffusers():
|
||||
if args.skip_all or args.skip_requirements:
|
||||
return
|
||||
sha = '069186fac510d6f6f88a5e435523b235c823a8a0'
|
||||
sha = 'c96bfa5c80eca798d555a79a491043c311d0f608'
|
||||
pkg = pkg_resources.working_set.by_key.get('diffusers', None)
|
||||
minor = int(pkg.version.split('.')[1] if pkg is not None else 0)
|
||||
cur = opts.get('diffusers_version', '') if minor > 0 else ''
|
||||
|
||||
@@ -100,7 +100,7 @@ class Script(scripts.Script):
|
||||
|
||||
if tool == 'Depth':
|
||||
# pipe = FluxControlPipeline.from_pretrained("black-forest-labs/FLUX.1-Depth-dev", torch_dtype=torch.bfloat16, revision="refs/pr/1").to("cuda")
|
||||
install('git+https://github.com/asomoza/image_gen_aux.git', 'image_gen_aux')
|
||||
install('git+https://github.com/huggingface/image_gen_aux.git', 'image_gen_aux')
|
||||
if shared.sd_model.__class__.__name__ != 'FluxControlPipeline' or 'Depth' not in shared.opts.sd_model_checkpoint:
|
||||
shared.opts.data["sd_model_checkpoint"] = "black-forest-labs/FLUX.1-Depth-dev"
|
||||
sd_models.reload_model_weights(op='model', revision="refs/pr/1")
|
||||
|
||||
Reference in New Issue
Block a user