Add build-image.yml

main
ihmily 10 months ago
parent 419c8c1120
commit c342b7f901

@ -0,0 +1,6 @@
.github/workflows/build-image.yml
.git
.gitignore
.dockerignore
README.md
LICENSE

@ -39,20 +39,20 @@ Simply run the following commands after entering the project folder.
Pull the Docker image. Pull the Docker image.
``` ```
docker pull ihmily/image-matting:0.0.3 docker pull ihmily/image-matting:latest
``` ```
After the image is pulled, run the container. After the image is pulled, run the container.
``` ```
docker run -p 8000:8000 ihmily/image-matting:0.0.3 docker run -p 8000:8000 ihmily/image-matting:latest
``` ```
Alternatively, you can build the image yourself. Alternatively, you can build the image yourself.
``` ```
docker build -t image-matting:0.0.3 . docker build -t image-matting:latest .
docker run -p 8000:8000 image-matting:0.0.3 docker run -p 8000:8000 image-matting:latest
``` ```
Lastly, visit http://127.0.0.1:8000 to perform online image matting. Feel free to choose the method that suits your preference. Lastly, visit http://127.0.0.1:8000 to perform online image matting. Feel free to choose the method that suits your preference.

@ -1,6 +1,6 @@
httpx
fastapi==0.108.0 fastapi==0.108.0
opencv-python opencv-python
requests
modelscope>=1.10.0 modelscope>=1.10.0
torch==2.1.2 torch==2.1.2
transformers==4.36.2 transformers==4.36.2
@ -9,3 +9,4 @@ tensorflow
python-multipart python-multipart
uvicorn uvicorn
jinja2 jinja2

Loading…
Cancel
Save