galaxy-CBIR

所属分类:模式识别(视觉/语音等)
开发工具:Jupyter Notebook
文件大小:0KB
下载次数:0
上传日期:2023-12-08 07:37:52
上 传 者sh-1993
说明:  一种基于内容的银河图像检索流水线
(A pipeline for content-based image retrieval of galactic images)

文件列表:
data/
model_checkpoints/
models/
search/
main.py
visualizations.ipynb

### GalaxIDNet: A custom transformer-based pipeline for galactic content-based image retrieval Given a query image of a galaxy, this pipeline is able to retreivel the top-k most similar images belonging to the dataset. This repository houses a custom dataset using data from the [Galaxy10 Dataset](https://astronn.readthedocs.io/en/latest/galaxy10.html), a custom from-scratch transformer neural network, and a second, learned dataset for image search. The main.py file allow for CLI training, testing, and/or searching as well as specification for various hyper-parameters, please see main.py for details or run with "--help" Examples: ```rb python3 main.py --force_download --train python3 main.py --build_search --checkpoint [path-to-trained-model-checkpoint] python3 main.py --search --query_image [path-to-image] --search_database [path-to-search-parent-dir] --checkpoint [path-to-checkpoint] ``` PLEASE NOTE: The python package astroNN seems to be unsupported for Apple silicon silicon computers. If this affects you, please download the .h5 file from the website manually and pass the file path to main.py via --h5_file to build the dataset instead. Dependencies: - torch - numpy - torchvision - tqdm - h5py or astroNN - PIL

近期下载者

相关文件


收藏者