-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: unify ControlNet model name option and deprecate old training s…
…cript
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from library.utils import setup_logging | ||
|
||
setup_logging() | ||
import logging | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
from library import train_util | ||
from train_control_net import setup_parser, train | ||
|
||
if __name__ == "__main__": | ||
logger.warning( | ||
"The module 'train_controlnet.py' is deprecated. Please use 'train_control_net.py' instead" | ||
" / 'train_controlnet.py'は非推奨です。代わりに'train_control_net.py'を使用してください。" | ||
) | ||
parser = setup_parser() | ||
|
||
args = parser.parse_args() | ||
train_util.verify_command_line_training_args(args) | ||
args = train_util.read_config_from_file(args, parser) | ||
|
||
train(args) |