nghazzy commited on
Commit
07501c1
1 Parent(s): 09deb76

Upload RooFoo_ODall.ipynb

Browse files
Files changed (1) hide show
  1. RooFoo_ODall.ipynb +96 -0
RooFoo_ODall.ipynb ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "metadata": {
7
+ "id": "VjYy0F2gZIPR"
8
+ },
9
+ "outputs": [],
10
+ "source": [
11
+ "%cd /content\n",
12
+ "!git clone https://github.com/runew0lf/RuinedFooocus.git\n",
13
+ "%cd RuinedFooocus\n",
14
+ "!apt -y install -qq aria2\n",
15
+ "#!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://civitai.com/api/download/models/240840 -d /content/RuinedFooocus/models/checkpoints -o sd_xl_base_1.0_0.9vae.safetensors\n",
16
+ "#!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://civitai.com/api/download/models/232565 -d /content/RuinedFooocus/models/checkpoints -o newrealityxl_12.safetensors\n",
17
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/dataautogpt3/OpenDalleV1.1/resolve/main/OpenDalleV1.1.safetensors?download=true -d /content/RuinedFooocus/models/checkpoints -o sd_xl_base_1.0_0.9vae.safetensors\n",
18
+ "\n",
19
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://civitai.com/api/download/models/283697 -d /content/RuinedFooocus/models/loras -o MJ52.safetensors\n",
20
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/popaiwayle.safetensors?download=true -d /content/RuinedFooocus/models/loras -o popaiwayle_artwork.safetensors\n",
21
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/brandibae.safetensors?download=true -d /content/RuinedFooocus/models/loras -o brandibae.safetensors\n",
22
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/bestiefirst.safetensors?download=true -d /content/RuinedFooocus/models/loras -o bestiefirst.safetensors\n",
23
+ "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/carodaq.safetensors?download=true -d /content/RuinedFooocus/models/loras -o carodaq.safetensors\n",
24
+ "#!pip install pygit2==1.12.2\n",
25
+ "#!pip install -q torch==2.0.1+cu118 torchvision==0.15.2+cu118 torchaudio==2.0.2+cu118 torchtext==0.15.2 torchdata==0.6.1 --extra-index-url https://download.pytorch.org/whl/cu118 -U\n",
26
+ "#!pip install https://download.pytorch.org/whl/cu121/xformers-0.0.22.post4-cp310-cp310-manylinux2014_x86_64.whl#sha256=7075114dbf698b609b599f0d35032c0b2f9a389751e8bbf4dd3c628376b0dd9c\n",
27
+ "!pip install -r requirements_versions.txt\n",
28
+ "!python launch.py --share"
29
+ ]
30
+ },
31
+ {
32
+ "cell_type": "code",
33
+ "source": [],
34
+ "metadata": {
35
+ "id": "new2R8nQpvRl"
36
+ },
37
+ "execution_count": null,
38
+ "outputs": []
39
+ },
40
+ {
41
+ "cell_type": "code",
42
+ "source": [
43
+ "!python launch.py --share"
44
+ ],
45
+ "metadata": {
46
+ "id": "X3iAizG6yfhU"
47
+ },
48
+ "execution_count": null,
49
+ "outputs": []
50
+ },
51
+ {
52
+ "cell_type": "code",
53
+ "source": [
54
+ "# @title DOWNLOAD THE ZIP WITH ALL THE IMAGES\n",
55
+ "import zipfile\n",
56
+ "import os\n",
57
+ "from google.colab import files\n",
58
+ "\n",
59
+ "def zip_folder(folder_path, zip_filename):\n",
60
+ " with zipfile.ZipFile(zip_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:\n",
61
+ " for root, _, files in os.walk(folder_path):\n",
62
+ " for file in files:\n",
63
+ " file_path = os.path.join(root, file)\n",
64
+ " arcname = os.path.relpath(file_path, folder_path)\n",
65
+ " zipf.write(file_path, arcname)\n",
66
+ "\n",
67
+ "folder_to_zip = \"/content/RuinedFooocus/outputs/2023-11-17\"\n",
68
+ "zip_filename = \"output2023-11-17.zip\"\n",
69
+ "zip_folder(folder_to_zip, zip_filename)\n",
70
+ "print(f'Succesfully saved all the images in {zip_filename}\\nDownloading the zip.....')\n",
71
+ "files.download(zip_filename)"
72
+ ],
73
+ "metadata": {
74
+ "id": "hr-VjaNtf4VJ"
75
+ },
76
+ "execution_count": null,
77
+ "outputs": []
78
+ }
79
+ ],
80
+ "metadata": {
81
+ "accelerator": "GPU",
82
+ "colab": {
83
+ "gpuType": "T4",
84
+ "provenance": []
85
+ },
86
+ "kernelspec": {
87
+ "display_name": "Python 3",
88
+ "name": "python3"
89
+ },
90
+ "language_info": {
91
+ "name": "python"
92
+ }
93
+ },
94
+ "nbformat": 4,
95
+ "nbformat_minor": 0
96
+ }