7bc93821a0
- Caption dropout is supported in ``train_db.py``, ``fine_tune.py`` and ``train_network.py``. Thanks to forestsource! - ``--caption_dropout_rate`` option specifies the dropout rate for captions (0~1.0, 0.1 means 10% chance for dropout). If dropout occurs, the image is trained with the empty caption. Default is 0 (no dropout). - ``--caption_dropout_every_n_epochs`` option specifies how many epochs to drop captions. If ``3`` is specified, in epoch 3, 6, 9 ..., images are trained with all captions empty. Default is None (no dropout). - ``--caption_tag_dropout_rate`` option specified the dropout rate for tags (comma separated tokens) (0~1.0, 0.1 means 10% chance for dropout). If dropout occurs, the tag is removed from the caption. If ``--keep_tokens`` option is set, these tokens (tags) are not dropped. Default is 0 (no droupout). - The bulk image downsampling script is added. Documentation is [here](https://github.com/kohya-ss/sd-scripts/blob/main/train_network_README-ja.md#%E7%94%BB%E5%83%8F%E3%83%AA%E3%82%B5%E3%82%A4%E3%82%BA%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88) (in Jpanaese). Thanks to bmaltais! - Typo check is added. Thanks to shirayu! - Add option to autolaunch the GUI in a browser and set the server_port. USe either `gui.ps1 --inbrowser --server_port 3456`or `gui.cmd -inbrowser -server_port 3456`
24 lines
598 B
Batchfile
24 lines
598 B
Batchfile
@echo off
|
|
|
|
REM Use this batch file with the following options:
|
|
REM -inbrowser - To launch the program in the browser
|
|
REM -server_port [port number] - To specify the server port
|
|
|
|
set inbrowserOption=
|
|
set serverPortOption=
|
|
|
|
if "%1" == "-server_port" (
|
|
set serverPortOption=--server_port %2
|
|
if "%3" == "-inbrowser" (
|
|
set inbrowserOption=--inbrowser
|
|
)
|
|
) else if "%1" == "-inbrowser" (
|
|
set inbrowserOption=--inbrowser
|
|
if "%2" == "-server_port" (
|
|
set serverPortOption=--server_port %3
|
|
)
|
|
)
|
|
|
|
call .\venv\Scripts\activate.bat
|
|
python.exe kohya_gui.py %inbrowserOption% %serverPortOption%
|