-
Notifications
You must be signed in to change notification settings - Fork 156
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
Feature request: model, … file paths relative to script location #3
Comments
I added the requested path changes and also create a |
As mentioned in #4, reverted changes for now. Do we need to run the script from outside the repo folder if we want to run it from an R script? |
Thank's for your quick response.
Yes, that would be great as I don't want to set my working directory for every R session to the directory of the repo.
I totally agree.
Copying the checkpoints and the codes files into the file of the executable in addition to the relative paths is exactly what I intended to do. With this setup I should be able to call the executable from everywhere. Sorry for mixing up the two issues… |
Ok, done :) Can you please check and see if everything works as expected? Closing for now. |
I have to reopen the issue as there is still something missing - sorry! Of course we need to add another line to adjust the codes file path as well.
And the loadLabels function has to be called explicitly with the
This should do the trick ;-) Thanks for your adjustments and all your effort for this project! |
Good catch. I also added relative paths for |
It would be nice to have the possibility to run the analyze.py script independently of the actual location of the user (e.g.
python3 BirdNET-Analyzer/analyze.py ...
). To allow this it would be necessary to define the model, label, species_list and eBird-codes file paths relative to the location of analyze.py.I'd like to suggest the following after parsing the arguments:
And Line 308 (
cfg.SPECIES_LIST_FILE = args.slist
) could be replaced by:Moreover there should be a
cfg.CODES_FILE
to adjust the path for the eBird-Codes as well.The text was updated successfully, but these errors were encountered: