Repository: rnag/rembg-aws-lambda (language: python)

Issue:
[BUG] File Size Limit @PyPI
**Describe the bug**
When deploying to PyPI, we run into a deploy issue by default, as I bundle a model file [`u2net.onnx`](https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx) within the package and that is over 100 MB in size (actual: ~168MB).

**Expected behavior**
PyPI package deploys without issue to PyPI.

**OS Version:**
iOS 22

**Rembg version:**
v2.0.21

**Additional context**
I've opened a File Limit Increase request on the PyPI repo on GH, here:
https://github.com/pypi/support/issues/2672

_Edit_: Looks like that got approved. The one way to test is to create a new (minor) release and test that the GH Actions workflow deploys to PyPI.



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml
deleted file mode 100644
index fe4c860..0000000
--- a/.github/workflows/publish_docker.yml
+++ /dev/null
@@ -1,28 +0,0 @@
-name: Publish Docker image
-
-on:
-    push:
-        tags:
-            - "v*.*.*"
-
-jobs:
-    push_to_registry:
-        name: Push Docker image to Docker Hub
-        runs-on: ubuntu-latest
-        steps:
-            - name: Checkout
-              uses: actions/checkout@v2
-            - name: Login to Docker Hub
-              uses: docker/login-action@v1
-              with:
-                  username: ${{ secrets.DOCKER_HUB_USERNAME }}
-                  password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-            - name: Set up Docker Buildx
-              uses: docker/setup-buildx-action@v1
-            - name: Build and push
-              uses: docker/build-push-action@v2
-              with:
-                  context: .
-                  file: ./Dockerfile
-                  push: true
-                  tags: ${{ secrets.DOCKER_HUB_USERNAME }}/rembg-aws-lambda:latest
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 29b94e0..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM nvidia/cuda:11.6.0-runtime-ubuntu18.04
-
-ENV DEBIAN_FRONTEND noninteractive
-
-RUN rm /etc/apt/sources.list.d/cuda.list || true
-RUN rm /etc/apt/sources.list.d/nvidia-ml.list || true
-RUN apt-key del 7fa2af80
-RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
-RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
-
-RUN apt update -y
-RUN apt upgrade -y
-RUN apt install -y curl wget software-properties-common
-RUN add-apt-repository ppa:deadsnakes/ppa
-RUN apt install -y python3.9 python3.9-distutils
-RUN curl https://bootstrap.pypa.io/get-pip.py | python3.9
-
-WORKDIR /rembg
-
-COPY . .
-RUN python3.9 -m pip install .[gpu]
-
-RUN mkdir -p ~/.u2net
-RUN wget https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2netp.onnx -O ~/.u2net/u2netp.onnx
-RUN wget https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx -O ~/.u2net/u2net.onnx
-RUN wget https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx -O ~/.u2net/u2net_human_seg.onnx
-RUN wget https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_cloth_seg.onnx -O ~/.u2net/u2net_cloth_seg.onnx
-
-EXPOSE 5000
-ENTRYPOINT ["rembg"]
-CMD ["--help"]
diff --git a/LICENSE.txt b/LICENSE.txt
index efe94fb..9895bfd 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,6 +1,7 @@
 MIT License
 
 Copyright (c) 2020 Daniel Gatis
+Copyright (c) 2023 Ritvik Nag
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 1409a0c..71dd0af 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,8 @@
   <img src="https://raw.githubusercontent.com/rnag/rembg-aws-lambda/master/examples/girl-3.out.png" width="100" />
 </p>
 
-[//]: # (**If this project has helped you, please consider making a [donation]&#40;https://www.buymeacoffee.com/danielgatis&#41;.**)
+**Check out my similar project, [`profile-photo`](https://github.com/rnag/profile-photo),
+which can create a [headshot](https://www.nfi.edu/headshot-photo/) from an image.**
 
 ## Requirements
 
@@ -136,16 +137,6 @@ for file in Path('path/to/folder').glob('*.png'):
             o.write(output)
 ```
 
-## Usage as a docker
-
-Just replace the `rembg` command for `docker run danielgatis/rembg`.
-
-Try this:
-
-```
-docker run danielgatis/rembg i path/to/input.png path/to/output.png
-```
-
 ## Models
 
 All models are downloaded and saved in the user home folder in the `.u2net` directory.
@@ -178,16 +169,16 @@ https://github.com/danielgatis/rembg/issues/193#issuecomment-1055534289
 - https://github.com/NathanUA/U-2-Net
 - https://github.com/pymatting/pymatting
 
-[//]: # (## Buy me a coffee)
+## Buy me a coffee
 
-[//]: # ()
-[//]: # (Liked some of my work? Buy me a coffee &#40;or more likely a beer&#41;)
+Liked some of my work? Buy me a coffee (or more likely a beer)
 
-[//]: # ()
-[//]: # (<a href="https://www.buymeacoffee.com/danielgatis" target="_blank"><img src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;"></a>)
+<a href="https://www.buymeacoffee.com/ritviknag" target="_blank"><img src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;"></a>
 
 ## License
 
-Copyright (c) 2020-present [Daniel Gatis](https://github.com/danielgatis)
+Copyright:
+  * (c) 2020-present  [Daniel Gatis](https://github.com/danielgatis)
+  * (c) 2023-present  [Ritvik Nag](https://github.com/rnag)
 
 Licensed under [MIT License](./LICENSE.txt)


Test patch:
diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml
index 024ee6f..0413c3c 100644
--- a/.github/workflows/test-install.yml
+++ b/.github/workflows/test-install.yml
@@ -23,7 +23,6 @@ jobs:
             - name: Install package
               run: |
                   python -m pip install --upgrade pip
-                  pip install .
                   pip install -r requirements-dev.txt
                   pip install pytest
                   (echo "import pooch" ; \
@@ -33,6 +32,7 @@ jobs:
                    echo "pooch.retrieve(url, f'md5:{md5}', fname=fname, path='./rembg', progressbar=True)") \
                   | python
                   chmod 777 ./rembg/*.onnx
+                  pip install .
             - name: Test installation with pytest
               run: |
                   pytest