[Update] Config Window: Add About VRCT Tab. This is The Credit Page.

*The button that is supposed to open the link is not working yet.
This commit is contained in:
Sakamoto Shiina
2024-04-06 21:53:29 +09:00
parent fc5f9b24c3
commit 1b6fa4c3e8
62 changed files with 934 additions and 23 deletions

View File

@@ -1,3 +1,4 @@
import random
from typing import Union
from os import path as os_path, rename as os_rename
from PIL.Image import open as Image_open
@@ -55,4 +56,12 @@ def isUniqueStrings(unique_strings:Union[str, list], input_string:str, require=F
def renameWeightFolder(path):
weight_path = os_path.join(path, "weight")
if os_path.exists(weight_path):
os_rename(weight_path, os_path.join(path, "weights"))
os_rename(weight_path, os_path.join(path, "weights"))
def splitListRandomly(lst, split_count):
random.shuffle(lst)
split_lists = []
for i in range(0, len(lst), split_count):
sub_list = lst[i:i+split_count]
split_lists.append(sub_list)
return split_lists