This is the official repository for "Segment Anything in Flow Experiments".
- 2024.04.15: First release
- Create a virtual environment:
conda create -n flowsam python=3.10 -y
and activate it:conda activate flowsam
. - Clone the repository:
git clone https://github.com/AliRKhojasteh/Flow_segmentation
. - Enter the Flow_segmentation folder:
cd Notebook
.
Follow the instructions inside the Notebook folder. Open the Flow_segmentation.ipynb
. Within the notebook, you will automatically install and clone required packages, input your image and the text prompt. The model checkpoints are downloaded and available.
- Click on "Open in Colab" if you would like to run on your browser without the need for further installations.
- Read dependencies and install them
- Loading the Input Image "Fingers.png"
- text_prompt = 'Fingers and a hand'
- Compute masks
All examples available in the 'demo' directory are permitted for demonstration purposes only. For additional usage permissions, please contact the corresponding authors listed in the references.
This project makes use of the following repositories:
@article{khojasteh2024practical,
title={Practical Object and Flow Structure Segmentation using Artificial Intelligence},
author={Khojasteh, Ali Rahimi and van de Water, Willem and Westerweel, Jerry},
note={Submitted to Experiments in Fluids},
year={2024}
}