Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Jan 6, 2025
1 parent c7d7a0d commit eed8283
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions easy_rec/python/utils/io_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def filter_unknown_args(flags, args):
if len(unknown) > 1:
logging.info('undefined arguments: %s', ', '.join(unknown[1:]))
for key, value in vars(args).items():
if value is None:
continue
if type(value) in (list, dict) and not value:
continue
known_args.append('--' + key + '=' + str(value))
Expand Down

0 comments on commit eed8283

Please sign in to comment.