├── README.md └── background_replacement_colab.ipynb /README.md: -------------------------------------------------------------------------------- 1 | 🐣 Please follow me for new updates https://twitter.com/camenduru
2 | 🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
3 | 🥳 Please join my patreon community https://patreon.com/camenduru
4 | 5 | ## 🦒 Colab 6 | 7 | | Colab | Info 8 | | --- | --- | 9 | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/camenduru/background-replacement-colab/blob/main/background_replacement_colab.ipynb) | background_replacement_colab 10 | 11 | ## Main Repo 12 | https://huggingface.co/spaces/Shopify/background-replacement/tree/main 13 | 14 | ## Output 15 | 16 | ![Screenshot 2023-09-27 034041](https://github.com/camenduru/background-replacement-colab/assets/54370274/c63a66b5-3c3c-40eb-8794-b7bc1b4c5a29) 17 | -------------------------------------------------------------------------------- /background_replacement_colab.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": { 6 | "id": "view-in-github" 7 | }, 8 | "source": [ 9 | "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/camenduru/background-replacement-colab/blob/main/background_replacement_colab.ipynb)" 10 | ] 11 | }, 12 | { 13 | "cell_type": "code", 14 | "execution_count": null, 15 | "metadata": { 16 | "id": "VjYy0F2gZIPR" 17 | }, 18 | "outputs": [], 19 | "source": [ 20 | "%cd /content\n", 21 | "!git clone -b dev https://github.com/camenduru/background-replacement-hf\n", 22 | "%cd /content/background-replacement-hf\n", 23 | "!pip install -q -r requirements.txt\n", 24 | "\n", 25 | "!wget https://github.com/camenduru/background-replacement-hf/assets/54370274/aee10271-04e5-4ea8-94d7-9717e73dd4a2 -O /content/background-replacement-hf/examples/dj-making-music-on-mixer.jpg\n", 26 | "!wget https://github.com/camenduru/background-replacement-hf/assets/54370274/663da768-22b6-4ccb-bbd1-744ded312063 -O /content/background-replacement-hf/examples/jean-shorts-woman.jpg\n", 27 | "!wget https://github.com/camenduru/background-replacement-hf/assets/54370274/122b89e5-c1d2-46d9-aa90-56a41e916b19 -O /content/background-replacement-hf/examples/black-sneakers-with-white-sole.jpg\n", 28 | "!wget https://github.com/camenduru/background-replacement-hf/assets/54370274/d8c15c10-cef2-4a92-9d66-0fd34caf1213 -O /content/background-replacement-hf/examples/DIY-beard-balm.jpg\n", 29 | "\n", 30 | "!python app.py" 31 | ] 32 | } 33 | ], 34 | "metadata": { 35 | "accelerator": "GPU", 36 | "colab": { 37 | "gpuType": "T4", 38 | "provenance": [] 39 | }, 40 | "kernelspec": { 41 | "display_name": "Python 3", 42 | "name": "python3" 43 | }, 44 | "language_info": { 45 | "name": "python" 46 | } 47 | }, 48 | "nbformat": 4, 49 | "nbformat_minor": 0 50 | } 51 | --------------------------------------------------------------------------------