Giter Site home page Giter Site logo

Comments (6)

kahst avatar kahst commented on August 22, 2024

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.

kahst avatar kahst commented on August 22, 2024

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.

FloMee avatar FloMee commented on August 22, 2024

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.

kahst avatar kahst commented on August 22, 2024

Ok, done :)

Can you please check and see if everything works as expected? Closing for now.

from birdnet-analyzer.

FloMee avatar FloMee commented on August 22, 2024

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.

kahst avatar kahst commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.