{ "cells": [ { "cell_type": "markdown", "id": "c52c6845-9709-40da-af44-204b5e6028ff", "metadata": { "tags": [] }, "source": [ "# LoraMerge主服务" ] }, { "cell_type": "markdown", "id": "183b9ffc-a9a4-4e10-9db7-71c6043e5726", "metadata": {}, "source": [ "/mnt/workspace/Photo/Like " ] }, { "cell_type": "markdown", "id": "f479dfa4-a83d-482a-a997-33d0d9e60e8d", "metadata": {}, "source": [ "/mnt/workspace/Photo/Like_Upscale" ] }, { "cell_type": "markdown", "id": "43484b49-ea69-4b53-a427-1e3b8d161924", "metadata": { "tags": [] }, "source": [ "## 移动放大的图片" ] }, { "cell_type": "code", "execution_count": null, "id": "5dabdee9-80f9-486e-bfa2-4fbb98720e77", "metadata": { "tags": [] }, "outputs": [], "source": [ "!python /mnt/workspace/MergeTools.py --ClearLike --move_upscale" ] }, { "cell_type": "markdown", "id": "dd5b1b73-5af4-4de9-a1cd-304ee544d29a", "metadata": { "tags": [] }, "source": [ "## 移动模型+打包模型+上传模型" ] }, { "cell_type": "code", "execution_count": null, "id": "0f65a107-16f1-4a1b-b4f4-4724d63d799e", "metadata": { "ExecutionIndicator": { "show": true }, "tags": [] }, "outputs": [], "source": [ "!python /mnt/workspace/MergeTools.py --move_and_delete_like_upscale --move_files_by_date --packup\n", "#--upload_to_modelscope \n", "#--clear_LoraUpload_model " ] }, { "cell_type": "markdown", "id": "18183c3d-ba6c-4bcd-ba32-256b1ac3c247", "metadata": { "jp-MarkdownHeadingCollapsed": true, "tags": [] }, "source": [ "# LoraMerge子服务" ] }, { "cell_type": "markdown", "id": "4217efe3-35c3-4daf-a1d6-eb84534074c3", "metadata": {}, "source": [ "## 按日期创建文件夹" ] }, { "cell_type": "code", "execution_count": null, "id": "b92d72eb-42ce-403f-96e1-0eac43fa08d6", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --create_directories" ] }, { "cell_type": "markdown", "id": "7c27ec5f-0209-4d1a-a3b7-05ae1a7dd063", "metadata": {}, "source": [ "## 删除喜欢的图" ] }, { "cell_type": "code", "execution_count": null, "id": "c7b1231e-f0c2-466e-b109-9ba5db58bb73", "metadata": { "tags": [] }, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --ClearLike" ] }, { "cell_type": "markdown", "id": "c9776f88-118f-4c35-a054-d63081ce4d19", "metadata": {}, "source": [ "## 移动放大的图" ] }, { "cell_type": "code", "execution_count": null, "id": "ecfa7c64-ea3a-4189-a74e-3434f9ae72d5", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --move_upscale" ] }, { "cell_type": "markdown", "id": "6f885ffe-3963-48b3-836c-cf713a929c23", "metadata": {}, "source": [ "## 将放大的图移动至父级目录" ] }, { "cell_type": "code", "execution_count": null, "id": "12c524b8-7538-4daf-89fa-6794bfc06fdb", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --move_and_delete_like_upscale" ] }, { "cell_type": "markdown", "id": "9e26008f-7ed7-4f67-87e1-b46f42490429", "metadata": {}, "source": [ "## 移动模型至日期文件夹" ] }, { "cell_type": "code", "execution_count": null, "id": "0965d6f7-1bc7-4d6d-9c60-6837db657b99", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --move_files_by_date" ] }, { "cell_type": "markdown", "id": "28118280-6c99-4609-84c5-13e17ecb5e2b", "metadata": {}, "source": [ "## 删除Upload文件夹的模型" ] }, { "cell_type": "code", "execution_count": null, "id": "d85fbb24-f2dc-48c2-ad95-408e7a4bbbd6", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --clear_LoraUpload_model" ] }, { "cell_type": "markdown", "id": "d6709532-dbfd-4040-adb5-c4a744eea2bc", "metadata": {}, "source": [ "## 打包文件夹模型" ] }, { "cell_type": "code", "execution_count": null, "id": "2db503bb-d8fa-492d-91f4-a3cb7438f03d", "metadata": {}, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --packup" ] }, { "cell_type": "markdown", "id": "4ce04e9d-960b-455e-9907-6cf58c0b3bea", "metadata": {}, "source": [ "## 上传模型" ] }, { "cell_type": "code", "execution_count": null, "id": "7d231066-6938-4faf-b30b-d4475a98f048", "metadata": { "tags": [] }, "outputs": [], "source": [ "!python /mnt/workspace/stable-diffusion-webui/MergeTools.py --upload_to_modelscope" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.12" } }, "nbformat": 4, "nbformat_minor": 5 }