Search for scientific images using deep learning with [ImageSearch], the last packaging of pyCBIR:
- image recommendation system
- evaluation of feature extraction algorithms
- user-friendly interface
-
Clone the project in your machine:
$ git clone https://github.com/xdatacnn/imagesearch.git
-
Installing Anaconda:
$ cd /tmp
$ curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
$ bash Anaconda3-2019.03-Linux-x86_64.sh
$ source ~/.bashrc
$ cd
-
Creating a conda environment to work with pyCBIR:
2.1 Create conda environment with requirements:
$ cd imagesearch/
$ conda create --name <name_of_your_env> --file requirements_condaenv_ubuntu.txt
2.2 Activate conda env:
$ conda activate <name_of_your_env>
2.3 To go out of the conda env:
$ conda deactivate
-
Go to the path:
$ cd imagesearch/
-
Run pyCBIR:
$ cd src/
$ python pycbir.py
-
Clone the project in your machine:
$ git clone https://github.com/xdatacnn/imagesearch.git
-
Creating a virtual environment to work with pyCBIR:
2.1 Install
pip
forpython3
:$ sudo apt-get install python3-pip
2.2 Install virtualenv library:
$ sudo pip3 install virtualenv
2.3 Create a new virtualenv
$ virtualenv <name_of_your_env>
2.4 Activate virtualenv:
$ source <name_of_your_env>/bin/activate
2.5 To go out of the virtualenv:
$ deactivate
-
Go to the path:
$ cd imagesearch/
-
Install requirements (all packages that you need to run pyCBIR):
$ pip install -r requirements_virtualenv_ubuntu.txt
-
Run pyCBIR:
$ cd src/
$ python src/pycbir.py
-
Clone the project in your machine:
$ git clone https://github.com/xdatacnn/imagesearch.git
-
Installing Anaconda:
$ cd /tmp
$ curl -O https://repo.anaconda.com/archive/Anaconda3-2019.10-MacOSX-x86_64.sh
$ bash Anaconda3-2019.10-MacOSX-x86_64.sh
$ source ~/.bashrc
-
Creating a conda environment to work with pyCBIR:
2.1 Create conda environment with requirements:
$ cd imagesearch/
$ conda create --name <name_of_your_env> --file requirements_condaenv_macos.txt
2.2 Activate conda env:
$ conda activate <name_of_your_env>
2.3 To go out of the conda env:
$ conda deactivate
-
Go to the path:
$ cd src/
-
Run pyCBIR:
$ python pycbir.py
-
Clone the project in your machine:
$ git clone https://github.com/xdatacnn/imagesearch.git
-
Creating a virtual environment to work with pyCBIR:
2.1 Install
pip
forpython3
:$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python3 get-pip.py
2.2 Install virtualenv library:
$ sudo pip install virtualenv
2.3 Create a new virtualenv
$ virtualenv <name_of_your_env>
2.4 Activate virtualenv:
$ source <name_of_your_env>/bin/activate
2.5 To go out of the virtualenv:
$ deactivate
-
Go to the path:
$ cd imagesearch/
-
Install requirements (all packages that you need to run pyCBIR):
$ pip install -r requirements_virtualenv_macos.txt
-
Run pyCBIR:
$ cd src/
$ python pycbir.py
-
Create experiment folders:
- database/: contains 1 folder per image class
- output/: contains outputs of models and search results images
- query/: contains query-images = 1 folder with all or 1 folder per image class
-
Run main file to open user interface:
$ cd src
$ python pycbir.py
-
Need datasets? Download and test in your laptop: [Cells] [MicroCT] [GISAXs]
-
It will blow your mind and, with large images, your laptop memory!
- Flavio Araujo
- Romuere Silva
- Daniela Ushizima
Reference us please! This way we can continue doing social good for free!
Araujo, Silva, Ushizima, Parkinson, Hexemer, Carneiro, Medeiros, "Reverse Image Search for Scientific Data within and beyond the Visible Spectrum", Expert Systems and Applications 2018 [bib]
This project aims to deploy a compact, yet useful app for content based image retrieval in python. Details about applications to images across domains can be found in this reference [full paper] [Oncology project]
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Version 0.4 (2019-09-28) - compatibility to TensorFlow 2.0.0rc1
The MIT License (MIT)
Copyright (c) 2019 Araujo, Silva and Ushizima
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This software contains work partially sponsored by the United States. While this document is believed to contain correct information, neither the United States Government nor any agency thereof, nor the Regents of the University of California, nor any of their employees, makes any warranty, express or implied, or assumes any legal responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial product, process, or service by its trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or theRegents of the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof or the Regents of the University of California.