Update readme

This commit is contained in:
bmaltais 2023-01-06 18:38:24 -05:00
parent 8ec1edbadc
commit aa0e39e14e
2 changed files with 16 additions and 3 deletions

View File

@ -4,6 +4,19 @@ This repository now includes the solutions provided by Kohya_ss in a single loca
A note accompanying the release of his new repository can be found here: https://note.com/kohya_ss/n/nba4eceaa4594
## Required Dependencies
Python 3.10.6+ and Git:
- Python 3.10.6+: https://www.python.org/ftp/python/3.10.6/python-3.10.6-amd64.exe
- git: https://git-scm.com/download/win
Give unrestricted script access to powershell so venv can work:
- Open an administrator powershell window
- Type `Set-ExecutionPolicy Unrestricted` and answer A
- Close admin powershell window
## Installation
Open a regular Powershell terminal and type the following inside:

View File

@ -1,4 +1,4 @@
$txt_files_folder = "D:\dataset\metart_g1\img\100_asd girl"
$txt_files_folder = "D:\dataset\"
$txt_prefix_to_ignore = "asds"
$txt_postfix_ti_ignore = "asds"
@ -6,10 +6,10 @@ $txt_postfix_ti_ignore = "asds"
# (Get-Content $txt_files_folder"\*.txt" ).Replace(",", "") -Split '\W' | Group-Object -NoElement | Sort-Object -Descending -Property Count
$combined_txt = Get-Content $txt_files_folder"\*.cap"
$combined_txt = Get-Content $txt_files_folder"\*.txt"
$combined_txt = $combined_txt.Replace(",", "")
$combined_txt = $combined_txt.Replace("$txt_prefix_to_ignore", "")
$combined_txt = $combined_txt.Replace("$txt_postfix_ti_ignore", "") -Split '\W' | Group-Object -NoElement | Sort-Object -Descending -Property Count
Write-Output "Sorted by count"
Write-Output $combined_txt
Write-Output $combined_txt.Name