Spaces:
Runtime error
Runtime error
File size: 2,148 Bytes
3d070c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "9LQUHs0MNqsh"
},
"source": [
"# ESRGAN Upscaling With Custom Models\n",
"\n",
"<br>\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",
"<br>\n",
"\n",
"<a href='https://ko-fi.com/Y8Y7GVAAF' target='_blank' style='display:block;margin-bottom:5px'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi1.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>"
]
},
{
"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
}
|