Skip to content

Commit 207f46c

Browse files
committed
ran formatter on the codebase
1 parent 55b94eb commit 207f46c

29 files changed

Lines changed: 1634 additions & 1328 deletions

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[flake8]
22
max-line-length = 88
33
ignore = E203, W503
4-
exclude = .git,__pycache__,venv, .gitignore
4+
exclude = .git,__pycache__,venv, .gitignore

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ res/
177177

178178
# Files to keep in the ignored folders
179179
!res/images/
180-
!pyvisim/res/
180+
!pyvisim/res/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ and the Siamese Neural Networks.
2828

2929
## Why `pyvisim`?
3030

31-
`pyvisim` is designed to provide a simple and efficient way to compare images.
31+
`pyvisim` is designed to provide a simple and efficient way to compare images.
3232

3333
### Quick Start
3434

@@ -82,7 +82,7 @@ have any suggestions or questions!
8282
5. **Siamese Network (Coming Soon!)**
8383
- Train a neural network to learn a similarity function directly from pairs/triples of images.
8484
- Possible use cases include face recognition, signature verification, or any image-based identity matching.
85-
85+
8686
## Installation
8787

8888
To use the library, you can simply install it via pip:
@@ -96,10 +96,10 @@ or clone the repository and install it locally:
9696
git clone https://github.com/MechaCritter/Python-Visual-Similarity.git
9797
cd Python-Visual-Similarity
9898
pip install .
99-
```
99+
```
100100
Note that the *notebooks are only available if you clone the repository.*
101101

102-
All experiments in this project was made on the Oxford Flower Dataset <ref>[7]</ref>, for which I
102+
All experiments in this project was made on the Oxford Flower Dataset <ref>[7]</ref>, for which I
103103
have created a custom dataset class. To use this class, import it as follows:
104104

105105
```python
@@ -109,9 +109,9 @@ For more details on the dataset, please refer to the [documentation](pyvisim/dat
109109

110110
## Pretrained Models
111111

112-
The following pretrained models are provided for clustering and dimensionality reduction. All clustering
113-
models were trained with `k=256`. The choice of `k` was made arbitrarily
114-
based on the paper <sup>[5](#references)</sup>, where the authors tested with `k=32`, `64`, `128`, `256`, `512`, and so on.
112+
The following pretrained models are provided for clustering and dimensionality reduction. All clustering
113+
models were trained with `k=256`. The choice of `k` was made arbitrarily
114+
based on the paper <sup>[5](#references)</sup>, where the authors tested with `k=32`, `64`, `128`, `256`, `512`, and so on.
115115
Since higher values would take too long, I chose `k=256` as a balance between performance and computational cost.
116116

117117
### KMeans Models
@@ -153,7 +153,7 @@ You can access these weights by importing `GMMWeights` from the `pyvisim.encoder
153153

154154
## Contributing
155155

156-
We love contributions of all kinds—whether it’s suggesting new features, fixing bugs, or writing docs! Here’s how you
156+
We love contributions of all kinds—whether it’s suggesting new features, fixing bugs, or writing docs! Here’s how you
157157
can get involved:
158158

159159
1. **Fork** this repository.
@@ -184,17 +184,16 @@ This project is licensed under the terms of the MIT license.
184184

185185
## References
186186

187-
[1] Weixia Zhang, Jia Yan, Wenxuan Shi, Tianpeng Feng, and Dexiang Deng, "Refining Deep Convolutional Features for
187+
[1] Weixia Zhang, Jia Yan, Wenxuan Shi, Tianpeng Feng, and Dexiang Deng, "Refining Deep Convolutional Features for
188188
Improving Fine-Grained Image Recognition," EURASIP Journal on Image and Video Processing, 2017. \
189189
[2] Relja Arandjelović and Andrew Zisserman, 'All About VLAD', Department of Engineering Science, University of Oxford. \
190-
[3] E. Spyromitros-Xioufis, S. Papadopoulos, I. Kompatsiaris, G. Tsoumakas, and I. Vlahavas, "An Empirical Study on the
191-
Combination of SURF Features with VLAD Vectors for Image Search," Informatics and Telematics Institute, Center for Research and
190+
[3] E. Spyromitros-Xioufis, S. Papadopoulos, I. Kompatsiaris, G. Tsoumakas, and I. Vlahavas, "An Empirical Study on the
191+
Combination of SURF Features with VLAD Vectors for Image Search," Informatics and Telematics Institute, Center for Research and
192192
Technology Hellas, Thessaloniki, Greece; Department of Informatics, Aristotle University of Thessaloniki, Greece. \
193-
[4] Relja Arandjelović and Andrew Zisserman, "Three things everyone should know to improve object retrieval," Department of
193+
[4] Relja Arandjelović and Andrew Zisserman, "Three things everyone should know to improve object retrieval," Department of
194194
Engineering Science, University of Oxford. \
195-
[5] Hervé Jégou, Florent Perronnin, Matthijs Douze, Jorge Sánchez, Patrick Pérez, and Cordelia Schmid, "Aggregating Local
195+
[5] Hervé Jégou, Florent Perronnin, Matthijs Douze, Jorge Sánchez, Patrick Pérez, and Cordelia Schmid, "Aggregating Local
196196
Image Descriptors into Compact Codes," IEEE. \
197-
[6] Liangliang Wang and Deepu Rajan, "An Image Similarity Descriptor for Classification Tasks," J. Vis. Commun.
197+
[6] Liangliang Wang and Deepu Rajan, "An Image Similarity Descriptor for Classification Tasks," J. Vis. Commun.
198198
Image R., vol. 71, pp. 102847, 2020. \
199199
[7] [Oxford Flower Dataset](https://www.robots.ox.ac.uk/~vgg/data/flowers/102/).
200-

examples/clustering_images_using_fv.ipynb

Lines changed: 107 additions & 102 deletions
Large diffs are not rendered by default.

examples/clustering_images_using_pipeline.ipynb

Lines changed: 112 additions & 106 deletions
Large diffs are not rendered by default.

examples/clustering_images_using_vlad.ipynb

Lines changed: 103 additions & 101 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)