-
Notifications
You must be signed in to change notification settings - Fork 54
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
feat: allow searching for similar images #21
Merged
yurijmikhalevich
merged 18 commits into
yurijmikhalevich:main
from
ramayer:similar_image_search
Nov 7, 2021
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2a085a7
feat: allow searching for similar images
ramayer deec04f
pycodestyle (squash this commit later)
ramayer 948a6d2
pyright (squash this commit later)
ramayer a1a86c6
Update rclip/model.py
ramayer 70cde5c
avoid downloading large files
ramayer 2f61636
add rquests to pipfile
ramayer 97a749d
refactored to compute embeddings in groups (squash this commit later)
ramayer c996308
pyright and pycodestyle (squash this commit later)
ramayer a4c3afd
Update rclip/model.py
ramayer 68077be
only return a single value from compute_features_for_queries
ramayer f13455b
moved image loading functions to utils
ramayer 7b92464
moved constants out of functions
ramayer e638a5c
Update rclip/utils.py
ramayer 85c23c9
renamed function
ramayer d7c3154
updated Pipfile.lock
yurijmikhalevich f497f9a
made linter happy
yurijmikhalevich b0bc2c4
minor refactoring
yurijmikhalevich 39a3cf3
fix pipenv to avoid an issue introduced with 2021.11.5
yurijmikhalevich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Can you add it via
pipenv install "requests~=2.26"
instead of editing thePipfile
?This will also update
Pipfile.lock
and will make the tests pass. I can do it if you don't want to.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.
Struggling to get this to resolve without errors.
PS -- wondering what direction you want to take this project in the future. On my home machines it's now the main way I've been organizing my pictures; and I've hacked on a lot of features that might-or-might-not be out of scope for your vision for this project - including:
No idea if you consider those in or our of scope for the main project.
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.
@ramayer, thanks for the update. I'll take a look at it.
About the direction:
rclip
works. Also, if we will implement this inrclip
it will start output pictures that don't feature anything German in them (if though they were taken in Germany; for example, a picture of a generic bed made in the hotel). I feel like this feature can be a part of another tool that will incorporaterclip
. Or I should change how I think aboutrclip
😅 Let me take to some time to consider this. I also think that we may consider extracting manual/existing tags from the images themselves.Thank you for sharing all these. All good ideas that I need to consider.
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.
@ramayer,
pipenv install "requests~=2.26"
worked fine for me. But, you shouldn't forget to executepipenv shell
before doing anything withpipenv
. I mention it here, in the Contributing section: https://github.com/yurijmikhalevich/rclip#contributing. Executingpipenv shell
sets env variable from.env
which is required to install the PyTorch withpipenv
from the official PyTorch "repository."