Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix output paths for decoding results #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toruurakawa
Copy link

No description provided.

@ashutoshml
Copy link
Collaborator

Hi @toruurakawa

Thanks for sending in the pull request. I am not sure entirely if this wouldn't break or overwrite anything during the training and testing process.

I'll revisit and review these changes for any possible errors later since this doesn't result in any runtime error.

@toruurakawa
Copy link
Author

Thanks for your comment.

Certainly it is necessary to make sure the behavior other than the decoding process.
Okay, I would be grateful if you could check it when you have time.

Copy link
Collaborator

@ashutoshml ashutoshml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add code to create the directory.
"os.makedirs(outdir, exist_ok=True)"

@@ -293,12 +293,14 @@ def decode_beam(model, test_dataloader, voc, device, args, logger, smethod, dat
param_str = [str(s) for s in args.sparam]
param_str= '_'.join(param_str)

outdir = str(args.out_dir)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add code to create directory. "os.makedirs(outdir, exist_ok=True)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants