mirror of https://github.com/skygpu/skynet.git
Provide both xl models
parent
440bb015cd
commit
713884e192
|
@ -8,6 +8,7 @@ MODELS = {
|
||||||
'prompthero/openjourney': { 'short': 'midj'},
|
'prompthero/openjourney': { 'short': 'midj'},
|
||||||
'runwayml/stable-diffusion-v1-5': { 'short': 'stable'},
|
'runwayml/stable-diffusion-v1-5': { 'short': 'stable'},
|
||||||
'stabilityai/stable-diffusion-2-1-base': { 'short': 'stable2'},
|
'stabilityai/stable-diffusion-2-1-base': { 'short': 'stable2'},
|
||||||
|
'snowkidy/stable-diffusion-xl-base-0.9': { 'short': 'stablexl0.9'},
|
||||||
'stabilityai/stable-diffusion-xl-base-1.0': { 'short': 'stablexl'},
|
'stabilityai/stable-diffusion-xl-base-1.0': { 'short': 'stablexl'},
|
||||||
'Linaqruf/anything-v3.0': { 'short': 'hdanime'},
|
'Linaqruf/anything-v3.0': { 'short': 'hdanime'},
|
||||||
'hakurei/waifu-diffusion': { 'short': 'waifu'},
|
'hakurei/waifu-diffusion': { 'short': 'waifu'},
|
||||||
|
|
|
@ -82,7 +82,8 @@ def pipeline_for(model: str, mem_fraction: float = 1.0, image=False) -> Diffusio
|
||||||
if model == 'runwayml/stable-diffusion-v1-5':
|
if model == 'runwayml/stable-diffusion-v1-5':
|
||||||
params['revision'] = 'fp16'
|
params['revision'] = 'fp16'
|
||||||
|
|
||||||
if model == 'stabilityai/stable-diffusion-xl-base-1.0':
|
if (model == 'stabilityai/stable-diffusion-xl-base-1.0' or
|
||||||
|
model == 'snowkidy/stable-diffusion-xl-base-0.9'):
|
||||||
if image:
|
if image:
|
||||||
pipe_class = StableDiffusionXLImg2ImgPipeline
|
pipe_class = StableDiffusionXLImg2ImgPipeline
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue