@@ -8,8 +8,6 @@ def dataset_options(config):
8
8
["cifar10" , "lsun" , "imagenet" , "folder" , "lfw" , "fake" , "mnist" ],
9
9
)
10
10
config ["data_path" ] = st .text_input ("Dataset path (data_path)" , "./" )
11
-
12
- config ["filepath" ] = st .text_input ("Logging file path (filepath)" , "./logs" )
13
11
st .markdown ("---" )
14
12
15
13
@@ -79,10 +77,10 @@ def ignite_handlers_options(config):
79
77
)
80
78
config ["n_saved" ] = st .number_input ("Number of best models to store (n_saved)" , min_value = 1 , value = 2 )
81
79
config ["log_every_iters" ] = st .number_input (
82
- "Logging interval for iteration progress bar" ,
80
+ "Logging interval for iteration progress bar (log_every_iters) " ,
83
81
min_value = 1 ,
84
82
value = 100 ,
85
- help = "Setting to a lower value can cause tqdm" " to fluch quickly for fast trainings" ,
83
+ help = "Setting to a lower value can cause ` tqdm` to fluch quickly for fast trainings" ,
86
84
)
87
85
config ["with_pbars" ] = st .checkbox (
88
86
"Show two progress bars" ,
@@ -106,6 +104,33 @@ def ignite_handlers_options(config):
106
104
)
107
105
st .markdown ("---" )
108
106
config ["setup_common_training_handlers" ] = True
107
+ if config ["with_pbars" ]:
108
+ config ["handler_deps" ] = "tqdm"
109
+
110
+
111
+ def ignite_loggers_options (config ):
112
+ st .markdown ("## Ignite Loggers Options" )
113
+ config ["filepath" ] = st .text_input (
114
+ "Logging file path (filepath)" ,
115
+ "./logs" ,
116
+ help = "This option will be used by both python logging and ignite loggers if possible" ,
117
+ )
118
+ if st .checkbox ("Use experiment tracking system ?" , value = True ):
119
+ config ["logger_deps" ] = st .selectbox (
120
+ "Select experiment eracking system" ,
121
+ ["ClearML" , "MLflow" , "Neptune" , "Polyaxon" , "TensorBoard" , "Visdom" , "WandB" ],
122
+ index = 4 ,
123
+ ).lower ()
124
+ # for logger requirement
125
+ if config ["logger_deps" ] in ("neptune" , "polyaxon" ):
126
+ config ["logger_deps" ] += "-client"
127
+ config ["logger_log_every_iters" ] = st .number_input (
128
+ "Logging interval for experiment tracking system (logger_log_every_iters)" ,
129
+ min_value = 1 ,
130
+ value = 100 ,
131
+ help = "This logging interval is iteration based." ,
132
+ )
133
+ st .markdown ("---" )
109
134
110
135
111
136
def model_options (config ):
@@ -143,6 +168,7 @@ def get_configs() -> dict:
143
168
training_options (config )
144
169
distributed_options (config )
145
170
ignite_handlers_options (config )
171
+ ignite_loggers_options (config )
146
172
model_options (config )
147
173
148
174
return config
0 commit comments