{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "9LQUHs0MNqsh"
},
"source": [
"# ESRGAN Upscaling With Custom Models\n",
"\n",
"
\n",
"\n",
"This space uses old ESRGAN architecture to upscale images, using models made by the community.\n",
"\n",
"Once the photo upscaled (*it can take a long time, this space only uses CPU*), click or tap the **download button** under the image to download it. **The preview image is not the upscaled one.**\n",
"\n",
"To run, just click or tap the play button below, and open the second Gradio link.\n",
"\n",
"
\n",
"\n",
""
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "IuJNlXTDFNRi"
},
"source": [
"## Clone Hugging Face Spaces Repo and install requeriments and start Gradio server"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "KzHQxbDoEHVm",
"outputId": "a0aad94e-df09-4207-dca4-1845c5d5d59a"
},
"outputs": [],
"source": [
"from IPython.display import clear_output\n",
"!git lfs install\n",
"!git lfs clone \"https://huggingface.co/spaces/0x90e/ESRGAN-MANGA\"\n",
"%cd ESRGAN-MANGA\n",
"!pip install -r requirements.txt -q\n",
"!pip install gradio\n",
"clear_output()\n",
"!python app.py"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"provenance": []
},
"gpuClass": "standard",
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}