Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yuiseki/image-vec
- Owner: yuiseki
- License: wtfpl
- Created: 2020-12-30T07:47:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T11:34:23.000Z (about 1 year ago)
- Last Synced: 2024-03-29T12:01:43.002Z (10 months ago)
- Topics: docker-image, flask, image-processing, image-vectorization, python, pytorch
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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に失敗したらエラーを返す
- 学習モデルを選択できるようにする