-
Notifications
You must be signed in to change notification settings - Fork 2
em gửi pull request #1
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
base: master
Are you sure you want to change the base?
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
left a comment
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.
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") |
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.
Local path
| return module | ||
|
|
||
|
|
||
| NetVLADLayer = module_from_file("NetVLADLayer", "/storage/computervision/longnth/models/image_retrieval/NetVLAD/scr/netvlad.py") |
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.
local Paths
| #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' |
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.
local paths
| # 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 |
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.
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 ?