Added support for Chroma1 official release. Will still use single file verstion instead of the diffusers version.
This commit is contained in:
1 parent
0d6d027248
commit
e1fd411665
2 files changed
+7
-1
No files matched your search
@@ -129,6 +129,12 @@ class ChromaModel(BaseModel):
|
|||||||
repo_id='lodestones/Chroma',
|
repo_id='lodestones/Chroma',
|
||||||
filename=f"chroma-unlocked-v{version}.safetensors",
|
filename=f"chroma-unlocked-v{version}.safetensors",
|
||||||
)
|
)
|
||||||
|
elif model_path.startswith("lodestones/Chroma1-"):
|
||||||
|
# will have a file in the repo that is Chroma1-whatever.safetensors
|
||||||
|
model_path = huggingface_hub.hf_hub_download(
|
||||||
|
repo_id=model_path,
|
||||||
|
filename=f"{model_path.split('/')[-1]}.safetensors",
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
# check if the model path is a local file
|
# check if the model path is a local file
|
||||||
if os.path.exists(model_path):
|
if os.path.exists(model_path):
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ export const modelArchs: ModelArch[] = [
|
|||||||
group: 'image',
|
group: 'image',
|
||||||
defaults: {
|
defaults: {
|
||||||
// default updates when [selected, unselected] in the UI
|
// default updates when [selected, unselected] in the UI
|
||||||
'config.process[0].model.name_or_path': ['lodestones/Chroma', defaultNameOrPath],
|
'config.process[0].model.name_or_path': ['lodestones/Chroma1-Base', defaultNameOrPath],
|
||||||
'config.process[0].model.quantize': [true, false],
|
'config.process[0].model.quantize': [true, false],
|
||||||
'config.process[0].model.quantize_te': [true, false],
|
'config.process[0].model.quantize_te': [true, false],
|
||||||
'config.process[0].sample.sampler': ['flowmatch', 'flowmatch'],
|
'config.process[0].sample.sampler': ['flowmatch', 'flowmatch'],
|
||||||
|
|||||||
Reference in new issue
Block a user