Giter Club home page Giter Club logo

Comments (7)

IndrekHaav avatar IndrekHaav commented on June 15, 2024 1

Thanks for the heads-up! That's good news, I'll test it out and update the guide.

I'm assuming the builds include the "regular" (non-AVX) version of Tensorflow?

Do you have plans to publish the builds on Github? That would make linking to the most recent build more convenient.

from photoprism-debian.

IndrekHaav avatar IndrekHaav commented on June 15, 2024 1

Understood, thanks for the information!

from photoprism-debian.

lastzero avatar lastzero commented on June 15, 2024

Oh, that's a great question! Since I've built this on a modern AMD Ryzen CPU, it could be that the AVX2 TensorFlow libraries are bundled. However, the performance difference to the non-AVX version is not big, so we could bundle that instead. Which do you prefer? We will add the packages to the next stable release on GitHub, since we created the current packages after the Docker release (so the build number does not match).

from photoprism-debian.

lastzero avatar lastzero commented on June 15, 2024

Note that you can also manually replace the TensorFlow libraries in /opt/photoprism/lib/ with a different version.

from photoprism-debian.

IndrekHaav avatar IndrekHaav commented on June 15, 2024

Since I've built this on a modern AMD Ryzen CPU, it could be that the AVX2 TensorFlow libraries are bundled. However, the performance difference to the non-AVX version is not big, so we could bundle that instead. Which do you prefer?

I've seen issues where people are running PhotoPrism on an older CPU that doesn't support AVX2, so probably the non-AVX version would be the safest bet, especially if there's not a lot of difference in terms of performance.

FWIW, if you're planning to use Github Actions for the builds, then currently the non-AVX version should get bundled (though that might change if Github moves their runners to a newer architecture). I know because I've taken a stab at building PhotoPrism for Linux that way. I'll stop that, of course, now that you're publishing official builds.

from photoprism-debian.

lastzero avatar lastzero commented on June 15, 2024

I've seen issues where people are running PhotoPrism on an older CPU that doesn't support AVX2, so probably the non-AVX version would be the safest bet, especially if there's not a lot of difference in terms of performance.

I just checked our build scripts to confirm that the standard TensorFlow libraries (without AVX) are bundled. The install-tensorflow.sh script tests CPU support for AVX/AVX2 only if you run it with "auto" as argument, which we do not do in this case.

FWIW, if you're planning to use Github Actions for the builds, then currently the non-AVX version should get bundled (though that might change if Github moves their runners to a newer architecture).

Due to previous security incidents related to GitHub and running a public CI infrastructure, we currently use a bare-metal server with no direct connection to GitHub to create binaries and run tests (with the exception of the docs repository, which uses GitHub Actions to generate HTML from Markdown). This also allows us to perform manual testing before an official release.

from photoprism-debian.

lastzero avatar lastzero commented on June 15, 2024

The installation package docs have been added to our public repository, so contributors can send pull requests with improvements:

from photoprism-debian.

Related Issues (19)

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.