Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
wz authored and wz committed Nov 27, 2020
1 parent 877b855 commit d7a27e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tensorflow_classification/Test2_alexnet/trainGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
epochs = 10

# class dict
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(data_root, cla))]
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(train_dir, cla))]
class_num = len(data_class)
class_dict = dict((value, index) for index, value in enumerate(data_class))

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_classification/Test3_vgg/trainGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
epochs = 10

# class dict
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(data_root, cla))]
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(train_dir, cla))]
class_num = len(data_class)
class_dict = dict((value, index) for index, value in enumerate(data_class))

Expand Down
2 changes: 1 addition & 1 deletion tensorflow_classification/Test4_goolenet/trainGPU.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main():
epochs = 30

# class dict
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(data_root, cla))]
data_class = [cla for cla in os.listdir(train_dir) if os.path.isdir(os.path.join(train_dir, cla))]
class_num = len(data_class)
class_dict = dict((value, index) for index, value in enumerate(data_class))

Expand Down

0 comments on commit d7a27e3

Please sign in to comment.