An open API service indexing awesome lists of open source software.

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

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
```