fix default for plugins
This commit is contained in:
parent
a72d455fc5
commit
1afaf59ec9
5
train.py
5
train.py
|
@ -749,7 +749,10 @@ def main(args):
|
||||||
generate_samples(global_step=0, batch=batch)
|
generate_samples(global_step=0, batch=batch)
|
||||||
|
|
||||||
from plugins.plugins import load_plugin
|
from plugins.plugins import load_plugin
|
||||||
plugins = [load_plugin(name) for name in args.plugins]
|
if args.plugins is not None:
|
||||||
|
plugins = [load_plugin(name) for name in args.plugins]
|
||||||
|
else:
|
||||||
|
plugins = []
|
||||||
|
|
||||||
try:
|
try:
|
||||||
write_batch_schedule(args, log_folder, train_batch, epoch = 0)
|
write_batch_schedule(args, log_folder, train_batch, epoch = 0)
|
||||||
|
|
Loading…
Reference in New Issue