Skip to content

Commit 962a36e

Browse files
authored
Merge branch 'master' into dev
2 parents 0ae8819 + 93a4b29 commit 962a36e

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: ['https://boosty.to/stablediffusionxui']

ui-src/Components/LoRA.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LoRA
1111
{
1212
static Dictionary<string, string> LoRAs = null;
1313
static string[] Formats = new string[] { "safetensors", "ckpt", "pt" };
14-
14+
1515
public static void Reload()
1616
{
1717
if (LoRAs == null)
@@ -39,7 +39,6 @@ static string AppendFormat(string FullPath)
3939
FullPath = FullPath.Replace("\\", "/");
4040

4141
string ValidName = FullPath;
42-
4342
string Ext = System.IO.Path.GetExtension(ValidName);
4443

4544
if (Ext.Length > 1)

ui-src/Components/TextualInversion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static void Reload()
2323
TIs.Clear();
2424
}
2525

26-
foreach (string File in FS.GetFilesFrom(FS.GetModelDir(FS.ModelDirs.TextualInversion), Formats, true))
26+
foreach (string File in FS.GetFilesFrom(FS.GetModelDir(FS.ModelDirs.TextualInversion), new string[] { "safetensors", "ckpt", "pt" }, true))
2727
{
2828
string Ext = System.IO.Path.GetExtension(File);
2929
string FileName = File.Replace(Ext, string.Empty);

0 commit comments

Comments
 (0)