Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document algorithm container interface
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Face vectorization algorithm container interface | ||
|
||
This directory contains a number of face vectorization implementations, each | ||
exposing a unified interface so that the algorithms can be used interchangeably | ||
in the faceanalysis app and in evaluation scripts. | ||
|
||
The algorithm container will be called like so: | ||
|
||
```bash | ||
docker run -v /path/to/images:/data the_algorithm_container /data/image1.jpg ... /data/imageN.jpg | ||
``` | ||
|
||
The container is expected output the following JSON structure to stdout: | ||
|
||
```json | ||
{ | ||
"faceVectors": { | ||
"/data/image1.jpg": [ | ||
[0, 1, 2, 3], // face vector for the first person in the first image | ||
// ... | ||
[4, 5, 6, 7] // face vector for the last person in the first image | ||
], | ||
// | ||
// ... | ||
// | ||
"/data/imageN.jpg": [ | ||
[3, 2, 1, 0], // face vector for the first person in the Nth image | ||
// ... | ||
[7, 6, 5, 4] // face vector for the last person in the Nth image | ||
] | ||
} | ||
} | ||
``` |