Home

Awesome

<p align="center"> <img src="img/method.jpg" width="900" style="margin-bottom: 0.2;"/> <p> <h2 align="center"> <a href="">FreestyleRet: Retrieving Images from Style-Diversified Queries</a></h2> <h5 align="center"> If you like our project, please give us a star ⭐ on GitHub for latest update. </h2> <h5 align="center">

arXiv License Data License <br>

</h5>

📰 News

😮 Highlights

💡 High performance, plug-and-play, and lightweight

FreestyleRet is the first multi-style retrieval model and focus on the precision search field. You can transfer our gram-based style block to any other pre-trained model with only 28M trainable parameter.

⚡️ A multi-style, fully aligned and gained dataset

We propose the precision search task and its fisrt corresponding dataset. Following figure shows our proposed Diverse-Style Retrieval Dataset(DSR), which includes five styles: origin, sketch, art, mosaic, and text.

<p align="center"> <img src="img/dataset-intro.jpg" width=99%> </p>

🚀 Main Results

FreestyleRet achieves state-of-the-art (SOTA) performance on the DSR dataset and the ImageNet-X dataset, * donates the results of prompt tuning.

<p align="left"> <img src="img/result.jpg" width=100%> </p>

🤗 Visualization

Each sample has three images to compare the retrieval performance between our FreestyleRet and the BLIP baseline on the DSR dataset. The left images are the queries randomly selected from different styles. The middle and the right images are the retrieval results of our FreestyleRet-BLIP model and the original BLIP model, respectively.

<p align="left"> <img src="img/case_study.jpg" width=100%> </p>

🛠️ Requirements and Installation

git clone https://github.com/YanhaoJia/FreeStyleRet
cd FreeStyleRet
pip install -r requirements.txt

💥 DSR dataset & FreestyleRet Checkpoints

Both dataset and model checkpoints has been released.

🗝️ Training & Validating

The training & validating instruction is in train.py and test.py.

👍 Acknowledgement

🔒 License

✏️ Citation

If you find our paper and code useful in your research, please consider giving a star :star: and citation :pencil:.

@misc{li2023freestyleret,
      title={FreestyleRet: Retrieving Images from Style-Diversified Queries}, 
      author={Hao Li and Curise Jia and Peng Jin and Zesen Cheng and Kehan Li and Jialu Sui and Chang Liu and Li Yuan},
      year={2023},
      eprint={2312.02428},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}