Comments (6)
I added the requested path changes and also create a cfg.CODES_FILE
. However, I'll leave this issue open until I tested this on Windows with multiple threads.
from birdnet-analyzer.
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?
from birdnet-analyzer.
Thank's for your quick response.
Do we need to run the script from outside the repo folder if we want to run it from an R script?
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 want to be able to distribute the executable without the remainder of the repo.
I totally agree.
Yet, what I did was add the latest checkpoint and also the codes files to the dist folder.
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…
from birdnet-analyzer.
Ok, done :)
Can you please check and see if everything works as expected? Closing for now.
from birdnet-analyzer.
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.
cfg.CODES_FILE = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), cfg.CODES_FILE)
And the loadLabels function has to be called explicitly with the cfg.LABELS_FILE
variable as the default variable won't be overwritten.
cfg.LABELS = loadLabels(cfg.LABELS_FILE)
This should do the trick ;-) Thanks for your adjustments and all your effort for this project!
from birdnet-analyzer.
Good catch. I also added relative paths for cfg.TRANSLATED_LABELS_PATH
and cfg.ERROR_LOG_FILE
. Additionally, I added path transformations to other scripts, too. Closing again :)
from birdnet-analyzer.
Related Issues (20)
- Error when training from GUI HOT 5
- V2.4 Labels are not translated for some languages HOT 1
- Limits to # of Files in a Batch Process HOT 1
- Error when adding arg --slist in analyze.py HOT 2
- BirdNET-Analyzer GUI throws an error and closes (Windows installer v1.2) HOT 1
- Error (List index out of range) when training custom model and crop mode is first - 5th WEC HOT 2
- Dawn Chorus HOT 1
- Allow more than one filetype for outputs-selection checkbox allow multiple outputs instead of radio button HOT 1
- Does BirdNET perform detection before classification?
- Training data not specific enough HOT 1
- Sourcing directory in BirdNet under Batch Upload not Working. HOT 1
- Shifted Begin Time (s) reported in output table when using high overlap HOT 1
- GUI Train error when using append HOT 2
- Files skipped and speed improvment HOT 1
- English Common names error in batch HOT 1
- Batch Analysis mode: File with sampling frequencies >48 kHz not recognized HOT 3
- Sourcing Directory in BirdNet under Batch Upload not Working HOT 9
- Puerto Rican Coqui frog identified with 99%-100% as Puerto Rican birds HOT 1
- Type errors in analyze.py, audio.py and config.py at the Verify step in MacOS install HOT 4
- gui.py fails with IsADirectoryError HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from birdnet-analyzer.