Ensure pyget makes subdirs

This commit is contained in:
space-nuko
2023-05-15 18:22:19 -05:00
parent 20423649b4
commit 28876de6a7
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -196,6 +196,7 @@ def pyget(url, path=None, filename=None, progress=True):
pbar = None
if progress:
pbar = comfy.utils.ProgressBar(total_size_in_bytes)
os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, 'wb') as file:
for chunk in response.iter_content(1024):
if progress:
+3 -3
View File
@@ -123,15 +123,15 @@ class DiscoDiffusionExtraSettings:
DEFAULT_PROMPT = """\
; How to prompt:
; Each line is prefixed with the starting frame number of the prompt.
; More than one line with the same frame number concatenates the two prompts together.
; Each line is prefixed with the starting step number of the prompt.
; More than one line with the same step number concatenates the two prompts together.
; Each individual prompt can be no more than 77 CLIP tokens long.
; Weights are parsed from the end of each prompt with "25:a fluffy fox:5" syntax
; Comments are written with the ';' character. Blank lines are ignored.
0:A beautiful painting of a singular lighthouse, shining its light across a tumultuous sea of blood by greg rutkowski and thomas kinkade. Trending on artstation.
0:yellow color scheme
;100:This set of prompts start at frame 100.
;100:This set of prompts starts at step 100.
;100:This prompt has weight five:5
""".strip()