TheLastBen
commited on
Commit
•
cd82004
1
Parent(s):
b70edda
Upload sdxllorapps.py
Browse files- Scripts/sdxllorapps.py +0 -30
Scripts/sdxllorapps.py
CHANGED
@@ -680,36 +680,6 @@ def dbtrainxl(Resume_Training, UNet_Training_Epochs, UNet_Learning_Rate, dim, Of
|
|
680 |
|
681 |
|
682 |
|
683 |
-
def sd(MDLPTH):
|
684 |
-
|
685 |
-
from slugify import slugify
|
686 |
-
from huggingface_hub import HfApi, CommitOperationAdd, create_repo
|
687 |
-
|
688 |
-
os.chdir('/notebooks')
|
689 |
-
|
690 |
-
print('[1;33mInstalling/Updating the repo...')
|
691 |
-
os.chdir('/notebooks')
|
692 |
-
if not os.path.exists('ComfyUI'):
|
693 |
-
call('git clone -q --depth 1 https://github.com/comfyanonymous/ComfyUI', shell=True)
|
694 |
-
|
695 |
-
os.chdir('ComfyUI')
|
696 |
-
call('git reset --hard', shell=True)
|
697 |
-
print('[1;32m')
|
698 |
-
call('git pull', shell=True)
|
699 |
-
os.chdir('/notebooks')
|
700 |
-
if os.path.exists(MDLPTH):
|
701 |
-
call('cp '+MDLPTH+' ComfyUI/models/loras', shell=True)
|
702 |
-
|
703 |
-
|
704 |
-
podid=os.environ.get('RUNPOD_POD_ID')
|
705 |
-
localurl="https://tensorboard-"+os.environ.get('PAPERSPACE_FQDN')
|
706 |
-
call("sed -i 's@print(\"To see the GUI go to: http://{}:{}\".format(address, port))@print(\"[32m\u2714 Connected\")\\n print(\"[1;34m"+localurl+"[0m\")@' /notebooks/ComfyUI/server.py", shell=True)
|
707 |
-
|
708 |
-
return restored
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
def sdcmf(MDLPTH, Download_SDXL_Model, Huggingface_token):
|
714 |
|
715 |
from slugify import slugify
|
|
|
680 |
|
681 |
|
682 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
683 |
def sdcmf(MDLPTH, Download_SDXL_Model, Huggingface_token):
|
684 |
|
685 |
from slugify import slugify
|