-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/clip #246
Feature/clip #246
Conversation
lucaro
commented
Jan 13, 2022
- Added Image and Text features based on OpenAI CLIP
- refactored and reorganized some common helper logic
…s rather than only the most representative frame.
This is required since FFMpegAudioDecoder and TechnicalVideoMetadataExtractor use Math.floorDiv, which is a function only available since Java 9.
Due to popular demand.
# Conflicts: # build.gradle # cineast-core/src/main/java/org/vitrivr/cineast/core/features/VisualTextCoEmbedding.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you very much for the work.
I added two comments about System.outs that may have been left in from debugging. Once they are either removed or I have your confirmation that they exist intentionally I will be happy to give my approval.
cineast-core/src/main/java/org/vitrivr/cineast/core/features/CLIPImage.java
Outdated
Show resolved
Hide resolved
cineast-core/src/main/java/org/vitrivr/cineast/core/features/CLIPText.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks again!
Could this target master directly? I don't see a reason this has to target |
I guess it could, I don't really have a preference for the target. If we want to make a 'minor release' out of this, sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the refactoring work!
* Added feature modules for OpenAI CLIP * Minor refactoring of utility classes * Refactored common image preprocessing logic into helper class Co-authored-by: Silvan Heller <silvan.heller@unibas.ch> Co-authored-by: Florian Spiess <florian.spiess@unibas.ch> Former-commit-id: c2315f0