Skip to content

Commit 4948415

Browse files
author
hanyoseob
committed
Upload load function
1 parent 66ebeb2 commit 4948415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def save(self, dir_chck, netG, optimG, epoch):
6969

7070
def load(self, dir_chck, netG, optimG=[], epoch=[], mode='train'):
7171

72-
if not os.path.exists(dir_chck):
72+
if not os.path.exists(dir_chck) or not os.listdir(dir_chck):
7373
epoch = 0
7474
if mode == 'train':
7575
return netG, optimG, epoch

0 commit comments

Comments
 (0)