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

Overwrite yml file but it does not exist. #3

Closed
leolin65 opened this issue Jul 26, 2021 · 2 comments
Closed

Overwrite yml file but it does not exist. #3

leolin65 opened this issue Jul 26, 2021 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@leolin65
Copy link

Test results zipper - image_rocauc: 0.94, pixel_rocauc: 0.98
Traceback (most recent call last):
File "D:\Code\ind_knn_ad-master\indad\run.py", line 82, in
cli_interface()
File "D:\ProgramData\Anaconda3\envs\env1\lib\site-packages\click\core.py", line 1137, in call
return self.main(*args, **kwargs)
File "D:\ProgramData\Anaconda3\envs\env1\lib\site-packages\click\core.py", line 1062, in main
rv = self.invoke(ctx)
File "D:\ProgramData\Anaconda3\envs\env1\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\ProgramData\Anaconda3\envs\env1\lib\site-packages\click\core.py", line 763, in invoke
return __callback(*args, **kwargs)
File "D:\Code\ind_knn_ad-master\indad\run.py", line 79, in cli_interface
write_results(total_results, method)
File "D:\Code\ind_knn_ad-master\indad\utils.py", line 65, in write_results
with open(f"./results/{name}.yml", "w") as outfile:
FileNotFoundError: [Errno 2] No such file or directory: './results/spade_26_07_2021_22_47_37.yml'

@rvorias
Copy link
Owner

rvorias commented Jul 26, 2021

Based on you last issues, you should run your commands from the main folder like this:
.../ind_knn_ad: python indad/run.py METHOD [--dataset DATASET]

and not like this:
.../ind_knn_ad/indad: python run.py METHOD [--dataset DATASET]

Most paths are hardcoded. It needs to be called from the main dir.

@leolin65
Copy link
Author

you should run your commands from the main folder like this:
.../ind_knn_ad: python indad/run.py METHOD [--dataset DATASET]

Got it, thank you.

@rvorias rvorias closed this as completed Jul 26, 2021
@rvorias rvorias self-assigned this Jul 26, 2021
@rvorias rvorias added the bug Something isn't working label Jul 26, 2021
@rvorias rvorias added good first issue Good for newcomers and removed bug Something isn't working labels Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants