Created using Colaboratory
This commit is contained in:
parent
2ba83cf0e4
commit
062b993fa5
|
@ -1,18 +1,16 @@
|
||||||
{
|
{
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"attachments": {},
|
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"colab_type": "text",
|
"id": "view-in-github",
|
||||||
"id": "view-in-github"
|
"colab_type": "text"
|
||||||
},
|
},
|
||||||
"source": [
|
"source": [
|
||||||
"<a href=\"https://colab.research.google.com/github/victorchall/EveryDream2trainer/blob/main/Train_Colab.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
"<a href=\"https://colab.research.google.com/github/nawnie/EveryDream2trainer/blob/main/Train_Colab.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"attachments": {},
|
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "blaLMSbkPHhG"
|
"id": "blaLMSbkPHhG"
|
||||||
|
@ -147,7 +145,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"attachments": {},
|
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "nEzuEYH0536C"
|
"id": "nEzuEYH0536C"
|
||||||
|
@ -389,7 +386,8 @@
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "Iuoa_1B9jRGU"
|
"id": "Iuoa_1B9jRGU",
|
||||||
|
"cellView": "form"
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
@ -397,6 +395,7 @@
|
||||||
"#@markdown * Edit train.json to setup your paramaters\n",
|
"#@markdown * Edit train.json to setup your paramaters\n",
|
||||||
"#@markdown * Edit chain0.json to make use of chaining\n",
|
"#@markdown * Edit chain0.json to make use of chaining\n",
|
||||||
"#@markdown * make sure to check each confguration you will need 1 Json per chain length 3 are provided\n",
|
"#@markdown * make sure to check each confguration you will need 1 Json per chain length 3 are provided\n",
|
||||||
|
"#@markdown * make sure your .Json contain the line Notebook: true\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"%cd /content/EveryDream2trainer\n",
|
"%cd /content/EveryDream2trainer\n",
|
||||||
|
@ -410,13 +409,42 @@
|
||||||
" l -= 1\n",
|
" l -= 1\n",
|
||||||
" I =+ 1"
|
" I =+ 1"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"source": [
|
||||||
|
"#@title Test your Diffusers\n",
|
||||||
|
"#@markdown Path to the diffusers that was trained\n",
|
||||||
|
"diffusers_path=\"\" #@param{type:\"string\"}\n",
|
||||||
|
"DF=diffusers_path\n",
|
||||||
|
"PROMPT= \"a photo of an astronaut on the moon\"#@param{type:\"string\"}\n",
|
||||||
|
"Resolution = 512 #@param {type:\"slider\", min:256, max:1024, step:32}\n",
|
||||||
|
"Seed= -1 #@param{type:\"integer\"}\n",
|
||||||
|
"Steps = 30 #@param {type:\"slider\", min:10, max:50, step:1}\n",
|
||||||
|
"cfg = 7 #@param {type:\"slider\", min:1, max:15, step:0.5}\n",
|
||||||
|
"\n",
|
||||||
|
"\n",
|
||||||
|
"!python /content/EveryDream2trainer/scripts/txt2img.py \\\n",
|
||||||
|
" --diffusers_path \"$DF\" \\\n",
|
||||||
|
" --resolution $Resolution \\\n",
|
||||||
|
" --seed $Seed \\\n",
|
||||||
|
" --prompt \"$PROMPT\" \\\n",
|
||||||
|
" --steps $Steps \\\n",
|
||||||
|
" --cfg_scale $cfg "
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"cellView": "form",
|
||||||
|
"id": "8HmIWtODuE6p"
|
||||||
|
},
|
||||||
|
"execution_count": null,
|
||||||
|
"outputs": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"accelerator": "GPU",
|
"accelerator": "GPU",
|
||||||
"colab": {
|
"colab": {
|
||||||
"include_colab_link": true,
|
"provenance": [],
|
||||||
"provenance": []
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"gpuClass": "standard",
|
"gpuClass": "standard",
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
|
|
Loading…
Reference in New Issue