TheLastBen
commited on
Commit
•
cdd04b6
1
Parent(s):
2aa9830
Upload 3 files
Browse files
Scripts/mainpaperspaceA1111.py
CHANGED
@@ -8,7 +8,6 @@ import ipywidgets as widgets
|
|
8 |
from torch.hub import download_url_to_file
|
9 |
from urllib.parse import urlparse
|
10 |
import re
|
11 |
-
from pyngrok import ngrok, conf
|
12 |
|
13 |
|
14 |
|
@@ -292,6 +291,8 @@ def sd(User, Password, Use_localtunnel, model):
|
|
292 |
|
293 |
def sdui(User, Password, Ngrok_token, model):
|
294 |
|
|
|
|
|
295 |
auth=f"--gradio-auth {User}:{Password}"
|
296 |
if User =="" or Password=="":
|
297 |
auth=""
|
|
|
8 |
from torch.hub import download_url_to_file
|
9 |
from urllib.parse import urlparse
|
10 |
import re
|
|
|
11 |
|
12 |
|
13 |
|
|
|
291 |
|
292 |
def sdui(User, Password, Ngrok_token, model):
|
293 |
|
294 |
+
from pyngrok import ngrok, conf
|
295 |
+
|
296 |
auth=f"--gradio-auth {User}:{Password}"
|
297 |
if User =="" or Password=="":
|
298 |
auth=""
|
Scripts/mainpaperspacev1.py
CHANGED
@@ -19,7 +19,6 @@ import requests
|
|
19 |
from collections import defaultdict
|
20 |
from math import log, sqrt
|
21 |
import numpy as np
|
22 |
-
from pyngrok import ngrok, conf
|
23 |
|
24 |
|
25 |
|
@@ -706,8 +705,8 @@ def dbtrain(Resume_Training, UNet_Training_Steps, UNet_Learning_Rate, Text_Encod
|
|
706 |
|
707 |
|
708 |
def test(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Use_localtunnel):
|
709 |
-
|
710 |
-
|
711 |
if Previous_Session_Name!="":
|
712 |
print("[1;32mLoading a previous session model")
|
713 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|
@@ -806,8 +805,9 @@ def test(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Use_l
|
|
806 |
|
807 |
|
808 |
def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Ngrok_token):
|
809 |
-
|
810 |
-
|
|
|
811 |
if Previous_Session_Name!="":
|
812 |
print("[1;32mLoading a previous session model")
|
813 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|
|
|
19 |
from collections import defaultdict
|
20 |
from math import log, sqrt
|
21 |
import numpy as np
|
|
|
22 |
|
23 |
|
24 |
|
|
|
705 |
|
706 |
|
707 |
def test(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Use_localtunnel):
|
708 |
+
|
709 |
+
|
710 |
if Previous_Session_Name!="":
|
711 |
print("[1;32mLoading a previous session model")
|
712 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|
|
|
805 |
|
806 |
|
807 |
def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Ngrok_token):
|
808 |
+
|
809 |
+
from pyngrok import ngrok, conf
|
810 |
+
|
811 |
if Previous_Session_Name!="":
|
812 |
print("[1;32mLoading a previous session model")
|
813 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|
Scripts/mainpaperspacev2.py
CHANGED
@@ -20,7 +20,7 @@ from collections import defaultdict
|
|
20 |
from math import log, sqrt
|
21 |
import numpy as np
|
22 |
from subprocess import check_output
|
23 |
-
|
24 |
|
25 |
|
26 |
def Deps(force_reinstall):
|
@@ -852,8 +852,9 @@ def test(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Use_l
|
|
852 |
|
853 |
|
854 |
def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Ngrok_token):
|
855 |
-
|
856 |
-
|
|
|
857 |
if Previous_Session_Name!="":
|
858 |
print("[1;32mLoading a previous session model")
|
859 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|
|
|
20 |
from math import log, sqrt
|
21 |
import numpy as np
|
22 |
from subprocess import check_output
|
23 |
+
|
24 |
|
25 |
|
26 |
def Deps(force_reinstall):
|
|
|
852 |
|
853 |
|
854 |
def testui(Custom_Path, Previous_Session_Name, Session_Name, User, Password, Ngrok_token):
|
855 |
+
|
856 |
+
from pyngrok import ngrok, conf
|
857 |
+
|
858 |
if Previous_Session_Name!="":
|
859 |
print("[1;32mLoading a previous session model")
|
860 |
mdldir='/notebooks/Fast-Dreambooth/Sessions/'+Previous_Session_Name
|