https://github.com/exectx/image-segmentation
Parallized image segmentation using OpenMPI
https://github.com/exectx/image-segmentation
Last synced: 11 months ago
JSON representation
Parallized image segmentation using OpenMPI
- Host: GitHub
- URL: https://github.com/exectx/image-segmentation
- Owner: exectx
- Created: 2021-12-23T17:30:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-27T20:04:13.000Z (over 4 years ago)
- Last Synced: 2024-11-02T07:06:05.619Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# image-segmentation
- Ivan Buendia Gutierrez
- Jhoel Salomon Tapara Quispe
- Diego Espirilla Portocarrero
Image segmentation implemented using MPI, K-means algorithm in a network
## Set up container
1. Set up `.env` file:
```
NET_MODE=
NET_NAME=
NET_PASS=
USER_PASS=
```
2. Create a `images` folder put your images in:
2. Start container:
```sh
docker-compose up -d
```
3. **Create** or **join** network:
```sh
docker exec -it worker sh -c "./init-vpn.sh"
```
3. In **main** docker container, add **worker** node on **main** node:
```sh
# Main container
./add-node.sh -H -HN -P -U
```
## Image segmentation:
Run mpirun:
```sh
# Main container
mpirun --allow-run-as-root -H :N --mca btl_tcp_if_include ham0 mpi-img-seg
```
Using hostfile:
```sh
# Main container
mpirun --allow-run-as-root --hostfile ./hostfile --mca btl_tcp_if_include ham0 mpi-img-seg
```