Browse Source

poofed CivitModelTypeExtensions

pull/5/head
Ionite 1 year ago
parent
commit
c003587195
No known key found for this signature in database
  1. 20
      StabilityMatrix/Models/Api/CivitModelType.cs

20
StabilityMatrix/Models/Api/CivitModelType.cs

@ -26,23 +26,3 @@ public enum CivitModelType
[ConvertTo<SharedFolderType>(SharedFolderType.LyCORIS)]
LoCon
}
public static class CivitModelTypeExtensions
{
public static SharedFolderType ToSharedFolderType(this CivitModelType type)
{
return type switch
{
CivitModelType.Checkpoint => SharedFolderType.StableDiffusion,
CivitModelType.TextualInversion => SharedFolderType.TextualInversion,
CivitModelType.Hypernetwork => SharedFolderType.Hypernetwork,
//CivitModelType.AestheticGradient => expr,
CivitModelType.LORA => SharedFolderType.Lora,
CivitModelType.Controlnet => SharedFolderType.ControlNet,
//CivitModelType.Poses => expr,
CivitModelType.Model => SharedFolderType.StableDiffusion,
CivitModelType.LoCon => SharedFolderType.LyCORIS,
_ => throw new ArgumentOutOfRangeException(nameof(type), type, null)
};
}
}

Loading…
Cancel
Save