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

Delete RooFoo-ODall.ipynb

Browse files
Files changed (1) hide show
  1. RooFoo-ODall.ipynb +0 -101
RooFoo-ODall.ipynb DELETED
@@ -1,101 +0,0 @@
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
- "#!rm ./launch.py\n",
16
- "#!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/RF-modLaunch/NewReality-launch.py?download=true -d /content/RuinedFooocus -o launch.py\n",
17
- "#!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",
18
- "#!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",
19
- "#!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",
20
- "\n",
21
- "!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",
22
- "!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",
23
- "!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",
24
- "!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",
25
- "!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",
26
- "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/sylvbestie.safetensors?download=true -d /content/RuinedFooocus/models/loras -o sylvbestie_style.safetensors\n",
27
- "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/TraiLow/kindarmore.safetensors?download=true -d /content/RuinedFooocus/models/loras -o kindarmore_style.safetensors\n",
28
- "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/datasets/abbiepam/shorty/resolve/main/3sebaB/babes_style.txt?download=true -d /content/RuinedFooocus/wildcards_official -o babes_style.txt\n",
29
- "#!pip install pygit2==1.12.2\n",
30
- "#!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",
31
- "#!pip install https://download.pytorch.org/whl/cu121/xformers-0.0.22.post4-cp310-cp310-manylinux2014_x86_64.whl#sha256=7075114dbf698b609b599f0d35032c0b2f9a389751e8bbf4dd3c628376b0dd9c\n",
32
- "!pip install -r requirements_versions.txt\n",
33
- "!python launch.py --share"
34
- ]
35
- },
36
- {
37
- "cell_type": "code",
38
- "source": [],
39
- "metadata": {
40
- "id": "new2R8nQpvRl"
41
- },
42
- "execution_count": null,
43
- "outputs": []
44
- },
45
- {
46
- "cell_type": "code",
47
- "source": [
48
- "!python launch.py --share"
49
- ],
50
- "metadata": {
51
- "id": "X3iAizG6yfhU"
52
- },
53
- "execution_count": null,
54
- "outputs": []
55
- },
56
- {
57
- "cell_type": "code",
58
- "source": [
59
- "# @title DOWNLOAD THE ZIP WITH ALL THE IMAGES\n",
60
- "import zipfile\n",
61
- "import os\n",
62
- "from google.colab import files\n",
63
- "\n",
64
- "def zip_folder(folder_path, zip_filename):\n",
65
- " with zipfile.ZipFile(zip_filename, 'w', zipfile.ZIP_DEFLATED) as zipf:\n",
66
- " for root, _, files in os.walk(folder_path):\n",
67
- " for file in files:\n",
68
- " file_path = os.path.join(root, file)\n",
69
- " arcname = os.path.relpath(file_path, folder_path)\n",
70
- " zipf.write(file_path, arcname)\n",
71
- "\n",
72
- "folder_to_zip = \"/content/RuinedFooocus/outputs/2023-11-17\"\n",
73
- "zip_filename = \"output2023-11-17.zip\"\n",
74
- "zip_folder(folder_to_zip, zip_filename)\n",
75
- "print(f'Succesfully saved all the images in {zip_filename}\\nDownloading the zip.....')\n",
76
- "files.download(zip_filename)"
77
- ],
78
- "metadata": {
79
- "id": "hr-VjaNtf4VJ"
80
- },
81
- "execution_count": null,
82
- "outputs": []
83
- }
84
- ],
85
- "metadata": {
86
- "accelerator": "GPU",
87
- "colab": {
88
- "gpuType": "T4",
89
- "provenance": []
90
- },
91
- "kernelspec": {
92
- "display_name": "Python 3",
93
- "name": "python3"
94
- },
95
- "language_info": {
96
- "name": "python"
97
- }
98
- },
99
- "nbformat": 4,
100
- "nbformat_minor": 0
101
- }