Trainer implementation
* Add Deconv2d * Fix BatchGenerator save option when using current directory
This commit is contained in:
parent
144ff4a004
commit
f2282e3216
3 changed files with 263 additions and 7 deletions
|
|
@ -31,7 +31,7 @@ class BatchGenerator:
|
|||
if save is not None:
|
||||
if '.' not in os.path.basename(save_path):
|
||||
save_path += '.hdf5'
|
||||
if not os.path.exists(os.path.dirname(save_path)):
|
||||
if os.path.dirname(save_path) and not os.path.exists(os.path.dirname(save_path)):
|
||||
os.makedirs(os.path.dirname(save_path))
|
||||
|
||||
if save and os.path.exists(save_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue