Code Monkey home page Code Monkey logo

Comments (3)

frankfliu avatar frankfliu commented on June 24, 2024 1

@StefanOltmann
I created a PR to use relative jar uri to generate hash. You can use the following model url to avoid multiple cache folder:

.optModelUrls("jar:/META-INF/models/retinaface.zip?ignore_real_uri=true")

from djl.

frankfliu avatar frankfliu commented on June 24, 2024

The model's cache folder is a hash of real jar URL. For example, if your program generate the jar file in the following path: /source/my_app/build/libs/my_app-0.27.0-SNAPSHOT.jar, the URL will be: jar:file:/source/my_app/build/libs/my_app-0.27.0-SNAPSHOT.jar!/META-INF/models/retinaface.zip. You got different hash is because, the jar file name (or location) changed 3 times during your development. Did you bump up application version?

from djl.

StefanOltmann avatar StefanOltmann commented on June 24, 2024

Yes, with each release I bump up the version.

Can I control where it will be extracted?

This hash will result in additional 100 MB retinaface.pt with every update of my app. That’s not good.

from djl.

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.