Skip to content

Commit 767dabf

Browse files
committed
Refactor checkpoint directory assignment logic in FMPose_main.py for improved clarity and maintainability.
1 parent 968cc50 commit 767dabf

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

scripts/FMPose_main.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,11 @@ def print_error_action(action_error_sum, is_train):
252252

253253
if args.create_file:
254254
# create backup folder
255-
if args.debug and args.train == False:
255+
if args.debug:
256256
args.checkpoint = "./debug/" + folder_name
257-
if args.train:
257+
elif args.train:
258258
args.checkpoint = "./checkpoint/" + folder_name
259-
260-
if args.train == False:
259+
elif args.train == False:
261260
# create a new folder for the test results
262261
args.previous_dir = os.path.dirname(args.saved_model_path)
263262
args.checkpoint = os.path.join(args.previous_dir, folder_name)

0 commit comments

Comments
 (0)