Skip to content

Commit bad6c6e

Browse files
committed
Initial commit
0 parents  commit bad6c6e

File tree

131 files changed

+9738
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+9738
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea/
2+
data
3+
data/
4+
csvs
5+
csvs/
6+
*.csv
7+
*.xlsx
8+
*.ipynb
9+
*.pth
10+
*.zip
11+
logs/
12+
__pycache__/

Dockerfile

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM pytorch/pytorch:1.8.0-cuda11.1-cudnn8-devel
2+
3+
RUN apt-get update
4+
RUN apt-get install ffmpeg libsm6 libxext6 libgl1-mesa-glx -y
5+
6+
RUN pip install jupyterlab
7+
RUN pip install opencv-python
8+
RUN pip install scikit-image
9+
RUN pip install scikit-learn
10+
RUN pip install seaborn
11+
RUN pip install pandas
12+
RUN pip install imutils
13+
RUN pip install craft-text-detector
14+
RUN pip install tensorflow
15+
RUN pip install kornia
16+
RUN pip install pytorch_memlab
17+
18+
RUN apt-get install bc unzip git -y
19+
20+
# if use accimage
21+
RUN pip install --prefix=/opt/intel/ipp ipp-devel
22+
RUN pip install git+https://github.com/pytorch/accimage
23+
ENV LD_LIBRARY_PATH=/opt/intel/ipp/lib:$LD_LIBRARY_PATH
24+
25+
# if use pillow-simd
26+
RUN pip uninstall -y pillow
27+
RUN CC="cc -mavx2" pip install -U --force-reinstall pillow-simd
28+
29+
RUN pip install umap-learn
30+
31+
RUN pip install faiss-gpu
32+
33+
# setup user [ to avoid -u $(id -u):$(id -g) ]
34+
RUN groupadd -g 1000 user
35+
RUN useradd -g 1000 -u 1000 -ms /bin/bash user
36+
EXPOSE 6006
37+
EXPOSE 8123
38+
39+
USER user
40+
WORKDIR /workspace

README.md

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Fast Image Retrieval
2+
3+
## Introduction
4+
Fast Image Retrieval is an open source image retrieval framework release by Center of Image and Signal Processing Lab(CISiP Lab), Universiti Malaya. This framework implemented most major binary hashing methods, together with major backbone networks and major datasets.
5+
6+
### Major features
7+
- **One for All**
8+
9+
We unified various binary hashing methods, different backbone, and multiple datasets under a same single framework, easing the benchmark and research. It supports popular binary hashing methods, e.g. HashNet, GreedyHash, DPN, OrthoHash, etc.
10+
- **Modularity**
11+
12+
We break the framework into parts so that one can easily implement their own method by joining up the components.
13+
14+
## License
15+
[comment]: <> (Add license)
16+
This project is released under [BSD-3 license]().
17+
## Changelog
18+
19+
[comment]: <> (Change to docs link)
20+
Please refer to [Changelog](?) for more detail.
21+
## Implemented method/backbone/datasets
22+
[//]: <> (This is copied from docs/implementation.md)
23+
### Backbone
24+
1. Alexnet
25+
2. VGG{16}
26+
3. ResNet{18,34,50,101,152}
27+
28+
### Loss (Method)
29+
#### Supervised
30+
|Method|Config Template|Loss Name|
31+
|---|---|---|
32+
|ADSH|adsh.yaml|adsh|
33+
|BiHalf|bihalf-supervised.yaml|bihalf-supervised|
34+
|Cross Entropy|ce.yaml|ce|
35+
|CSQ|csq.yaml|csq|
36+
|DBDH|dbdh.yaml|dbdh|
37+
|DFH|dfh.yaml|dfh|
38+
|DPN|dpn.yaml|dpn|
39+
|DPSH|dpsh.yaml|dpsh|
40+
|DTSH|dtsh.yaml|dtsh|
41+
|GreedyHash|greedyhash.yaml|greedyhash|
42+
|HashNet|hashnet.yaml|hashnet|
43+
|JMLH|jmlh.yaml|jmlh|
44+
|MIHash|mihash.yaml|mihash|
45+
|OrthoCos(OrthoHash)|orthocos.yaml|orthocos|
46+
|OrthoArc(OrthoHash)|orthoarc.yaml|orthoarc|
47+
|SDH|sdh.yaml|sdh|
48+
|SDH-C|sdhc.yaml|sdhc|
49+
#### Unsupervised
50+
|Method|Config Template|Loss Name|
51+
|---|---|---|
52+
|BiHalf|bihalf.yaml|bihalf|
53+
|CIBHash|cibhash.yaml|cibhash|
54+
|GreedyHash|greedyhash-unsupervised.yaml|greedyhash-unsupervised|
55+
|SSDH|ssdh.yaml|ssdh|
56+
|TBH|tbh.yaml|tbh|
57+
#### Shallow (Non-Deep learning methods)
58+
|Method|Config Template|Loss Name|
59+
|---|---|---|
60+
|ITQ|itq.yaml|itq|
61+
|LsH|lsh.yaml|lsh|
62+
|PCAHash|pca.yaml|pca|
63+
|SH|sh.yaml|sh|
64+
65+
66+
67+
### Datasets
68+
|Dataset|Name in framework|
69+
|---|---|
70+
|ImageNet100|imagenet|
71+
|NUS-WIDE|nuswide|
72+
|MS-COCO|coco|
73+
|MIRFLICKR/Flickr25k|mirflickr|
74+
|Stanford Online Product|sop|
75+
|Cars dataset|cars|
76+
|CIFAR10|cifar10|
77+
78+
## Installation
79+
[comment]: <> (Change to docs link)
80+
Please head up to [get_started.md](docs/get_started.md) for guides on setup conda environment and installation.
81+
## Tutorials
82+
[comment]: <> (Change to docs link)
83+
Please head up to [tutorials.md](docs/tutorials.md) for guidances.
84+
85+
[comment]: <> (## Citation)
86+
87+
[comment]: <> (If you find this framework useful in your research, please consider cite this project.)
88+
89+
[comment]: <> (```)
90+
91+
[comment]: <> (@misc{)
92+
93+
94+
[comment]: <> (```)
95+
## Contributing
96+
We welcome the contributions to improve this project. Please file your suggestions/issues by creating new issues or send us a pull request for your new changes/improvement/features/fixes.

analysis/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)