Skip to content

Commit

Permalink
Simplified argument handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
GMW99 committed Jul 11, 2024
1 parent 6577423 commit 283fc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main():
type=lambda x: kom.config.parser.is_valid_file(parser, x),
)
args = parser.parse_args()
config = kom.config.parser.get_config(args.filename.name)
config = kom.config.parser.get_config(args.filename)
print(config)
if not os.path.exists(config["train"]["dataset_path"]):
raise FileNotFoundError(
Expand Down

0 comments on commit 283fc5e

Please sign in to comment.