diff --git a/EveryDream_Tools.ipynb b/EveryDream_Tools.ipynb index d2114b2..436f558 100644 --- a/EveryDream_Tools.ipynb +++ b/EveryDream_Tools.ipynb @@ -10,6 +10,19 @@ "\"Open" ] }, + { + "cell_type": "code", + "source": [ + "#@title #Connect to Google Drive\n", + "from google.colab import drive\n", + "drive.mount('/content/drive')\n" + ], + "metadata": { + "id": "Z_ZHfnQ52dg9" + }, + "execution_count": null, + "outputs": [] + }, { "cell_type": "markdown", "metadata": { @@ -57,7 +70,8 @@ "!pip install fairscale=='0.4.4'\n", "!pip install transformers=='4.19.2'\n", "!pip install timm\n", - "!pip install aiofiles" + "!pip install aiofiles\n", + "!pip install colorama" ] }, { @@ -221,7 +235,7 @@ "\n", "* --find: will search for a word in this case man\n", "\n", - "* --replace: will replace our found word with in this case VictorChall\n", + "* --replace: will replace our found word with in this case bob smith\n", "\n", "* --append_only: this will allow us to add a tag at he end " ], @@ -235,7 +249,7 @@ "!python scripts/filename_replace.py \\\n", "--img_dir output \\\n", "--find \"man\" \\\n", - "--replace \"VictorChall\"" + "--replace \"bob smith\"" ], "metadata": { "id": "6Y1md3OHAvhw" @@ -275,7 +289,7 @@ { "cell_type": "code", "source": [ - "/content/EveryDream/scripts/compress_img.py \\\n", + "!python scripts/compress_img.py \\\n", "--img_dir output \\\n", "--out_dir output/compressed_images \\\n", "--max_mp 1.5 \n", @@ -309,8 +323,6 @@ }, "outputs": [], "source": [ - "from google.colab import drive\n", - "drive.mount('/content/drive')\n", "\n", "!mkdir /content/drive/MyDrive/Auto_Data_sets\n", "!cp -r output/ /content/drive/MyDrive/Auto_Data_sets" @@ -350,6 +362,7 @@ "metadata": { "colab": { "provenance": [], + "machine_shape": "hm", "include_colab_link": true }, "kernelspec": { @@ -365,7 +378,9 @@ "interpreter": { "hash": "faf4a6abb601e3a9195ce3e9620411ceec233a951446de834cdf28542d2d93b4" } - } + }, + "accelerator": "GPU", + "gpuClass": "standard" }, "nbformat": 4, "nbformat_minor": 0