Open
Conversation
ezrafield
commented
Feb 10, 2023
- demo.ipynb: tạo demo train 100+100 epochs + plot query_one
- query_one.py: hàm query_one + plot_query_one, em copy lại các hàm trong module anh dùng vì trong trường hợp đưa file streamlit chạy ở nơi khác vẫn chạy được
- utils.py: sửa chút chỗ load_checkpoint để có thể chạy CPU
- api.py: chưa hoàn chỉnh, anh sửa giùm :D
- 014_Image Retrieval.py: file streamlit demo, anh quăng chỗ khác vẫn chạy ổn, chỉ cần chỉnh lại các path string cho phù hợp :D
ginofft
requested changes
Feb 13, 2023
Owner
ginofft
left a comment
There was a problem hiding this comment.
Local paths
Redundant functions
| st.markdown("<h1 style='text-align: center; color: white;'>Image Retrieval</h1>", unsafe_allow_html=True) | ||
|
|
||
| # att = os.listdir("/storage/computervision/longnth/models/image_retrieval/NetVLAD/data/database") | ||
| att = os.listdir("/storage/computervision/longnth/models/image_retrieval/NetVLAD/data") |
| return module | ||
|
|
||
|
|
||
| NetVLADLayer = module_from_file("NetVLADLayer", "/storage/computervision/longnth/models/image_retrieval/NetVLAD/scr/netvlad.py") |
| #Set up output paths | ||
| dbPath = '/storage/computervision/longnth/models/image_retrieval/NetVLAD/data/database' | ||
| queryPath = '/storage/computervision/longnth/models/image_retrieval/NetVLAD/data/query' | ||
| outPath = '/storage/computervision/longnth/models/image_retrieval/NetVLAD/out' |
| # plot_images([query_img], dpi = 25) | ||
| plt.imshow(query_img) | ||
| db_imgs = [read_image(db_dir+ "/"+r) for r in db_refs] | ||
| plot_images(db_imgs[:10], dpi = 25) No newline at end of file |
Owner
There was a problem hiding this comment.
Cái file này có mấy hàm y hệt bên utils mà, tạo files mới chi vậy ?
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.