Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yuiseki/image-vec

image to vector REST API docker image powered by img2vec_pytorch
https://github.com/yuiseki/image-vec

docker-image flask image-processing image-vectorization python pytorch

Last synced: 26 days ago
JSON representation

image to vector REST API docker image powered by img2vec_pytorch

Awesome Lists containing this project

README

        

# image to vector REST API docker image powered by img2vec_pytorch

## Run test
```
pytest
```

## Run server
```
python src/main.py
```

## Build Docker image
```
./build.sh
```

## Run server by Docker image
```
docker run -it yuiseki/image-vec
```

## API
- `/vector.json`
- `GET`
- request params
- url
- response type
- `application/json`
- `POST`
- request type
- `application/x-www-form-urlencoded`
- request params
- image_b64
- string of base64 encoded image binary
- response type
- `application/json`

## ToDo
- エラー処理
- GET
- 200以外のURLだったらエラーを返す
- 画像以外の場合はエラーを返す
- 巨大すぎる画像の場合はエラーを返す
- POST
- base64 decodeに失敗したらエラーを返す
- 学習モデルを選択できるようにする