|
|
@ -111,29 +111,6 @@ public record LocalModelFile |
|
|
|
: Path.Combine(rootModelDirectory, PreviewImageRelativePath); |
|
|
|
: Path.Combine(rootModelDirectory, PreviewImageRelativePath); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*protected bool Equals(LocalModelFile other) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return RelativePath == other.RelativePath; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
|
|
public override bool Equals(object? obj) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (ReferenceEquals(null, obj)) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
if (ReferenceEquals(this, obj)) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
if (obj.GetType() != this.GetType()) |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
return Equals((LocalModelFile)obj); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
|
|
public override int GetHashCode() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return RelativePath.GetHashCode(); |
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly HashSet<string> SupportedCheckpointExtensions = |
|
|
|
public static readonly HashSet<string> SupportedCheckpointExtensions = |
|
|
|
[ |
|
|
|
[ |
|
|
|
".safetensors", |
|
|
|
".safetensors", |
|
|
|