Conversation
Minimum allowed line rate is |
josh-tepper
reviewed
Mar 16, 2026
| COPY --from=public.ecr.aws/clarifai-models/static-streaming:5.1.8 /ffprobe /usr/local/bin/ | ||
| # COPY --from=public.ecr.aws/clarifai-models/static-streaming:5.1.8 /src /usr/local/src/ | ||
| RUN uv pip install --no-cache-dir av | ||
| RUN uv pip install 'clarifai-protocol[auto-annotation]=={CLARIFAI_PROTOCOL_LATEST_VERSION}' |
Contributor
There was a problem hiding this comment.
NOTE, the Dockerfile template; after the ${ADDITIONAL_PACKAGES} insertion -- which includes this test -- we subsequently install the requirements file:
Concern: if a user defines a different version of clarify protocol in their local requirements.txt, the subsequent installation of their version could override the initial install, causing the add-ons to be lost.
Could you please test:
- whether those two extra packages actually remain after the installation from requirements.txt?
- If there any way to install only the add-ons and not the main package itself?
Contributor
Author
There was a problem hiding this comment.
Very good point! I tested this and it is not a problem,: the additional packages remain installed after installing a different version of the clarifai-protocol package.
Test details follow.
- install
clarifai-protocolwithauto-annotationextra:uv pip install 'clarifai-protocol[auto-annotation]==0.0.60' - check additional packages installed
uv pip list | grep -E "shapely|av" av 16.1.0 shapely 2.1.2
- install different
clarifai-protocolversion withoutauto-annotationextra:uv pip install 'clarifai-protocol==0.0.59' - check additional packages installed
uv pip list | grep -E "shapely|av" av 16.1.0 shapely 2.1.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
shapelyis required for polygon filtering in streaming videosHow
clarifai-protocolwith theauto-annotationextra that will dynamically include the necessary requirements for video livestreamingTests
clarifai model init --streaming-video
Notes
auto-annotationextra was introduced inclarifai-protocolversion0.0.60, as documented in https://pypi.org/project/clarifai-protocol/0.0.60.