mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 15:00:23 +00:00
Merge pull request #276 from mio2333/main
Append sys path for import_module
This commit is contained in:
@@ -135,6 +135,8 @@ def train(args):
|
||||
gc.collect()
|
||||
|
||||
# prepare network
|
||||
import sys
|
||||
sys.path.append(os.path.dirname(__file__))
|
||||
print("import network module:", args.network_module)
|
||||
network_module = importlib.import_module(args.network_module)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user