mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
add auraflow
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import torch
|
||||
import diffusers
|
||||
|
||||
|
||||
repo_id = 'fal/AuraFlow'
|
||||
|
||||
|
||||
def load_auraflow(_checkpoint_info, diffusers_load_config={}):
|
||||
from modules import shared, devices
|
||||
if 'torch_dtype' not in diffusers_load_config:
|
||||
diffusers_load_config['torch_dtype'] = torch.float16
|
||||
|
||||
pipe = diffusers.AuraFlowPipeline.from_pretrained(
|
||||
repo_id,
|
||||
cache_dir = shared.opts.diffusers_dir,
|
||||
**diffusers_load_config,
|
||||
)
|
||||
devices.torch_gc()
|
||||
return pipe
|
||||
Reference in New Issue
Block a user