Skip to content

A web app for image compression based on CompressAI.

Notifications You must be signed in to change notification settings

WoodenStone/brainy-compress

Repository files navigation

README

A web app built with React, Python, Golang for AI-powered image compression. Auto image compression based on critical image features and manual parameter settings are available. Features include batch compression and download, metrics and model comparison. Core algorithms are from CompressAI.

Set up

Check README.md in each folder for more details.

UI: README.md

model server: README.md

forwarder layer: README.md

Set up with docker compose

Make sure all config files and pretrained models exist before start.

# pull up client and server at one time with docker-compose in production mode
docker-compose up -d

Compile proto files

# model server
python -m grpc_tools.protoc -I./protos --python_out=./model-server/pb/ --pyi_out=./model-server/pb/ --grpc_python_out=./model-server/pb/ ./protos/compress.proto ./protos/classify.proto
# forwarder
protoc --go_out=./forwarder/internal/model --go_opt=paths=source_relative --go-grpc_out=./forwarder/internal/model --go-grpc_opt=paths=source_relative ./protos/compress.proto ./protos/classify.proto

About

A web app for image compression based on CompressAI.

Resources

Stars

Watchers

Forks

Packages

No packages published