Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .safetensors as supported file format #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config-default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ PF_UPSCALE_GFPGAN_AMOUNT = 0.0 # visibility of gfpgan face enhancement (0 = off
PF_UPSCALE_KEEP_ORG = no # keep the original non-upscaled image (yes/no)?
PF_NEG_PROMPT = # if you have a 'catch all' negative prompt you typically use, enter it here

# Set a default .ckpt file here so that whenever you set !CKPT_FILE to nothing (e.g. '!CKPT_FILE = '), this default
# Set a default .ckpt or .safetensors file here so that whenever you set !CKPT_FILE to nothing (e.g. '!CKPT_FILE = '), this default
# will be loaded. If you don't set anything here, !CKPT_FILE= will just use whatever happens to be loaded in Auto1111.
PF_CKPT_FILE =

Expand Down
2 changes: 1 addition & 1 deletion scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def build_model_reference(control):
if control.sdi_models == None:
buffer = "Reload this page after Stable Diffusion has finished initializing to see a list of your available models here."
else:
buffer += "<div class=\"modal-help-header-pre\"><p>These models may be assigned to the !CKPT_FILE directive. Add additional .ckpt files to your Automatic1111 models folder and restart Dream Factory to have them appear here.</p>\n"
buffer += "<div class=\"modal-help-header-pre\"><p>These models may be assigned to the !CKPT_FILE directive. Add additional .ckpt or .safetensors files to your Automatic1111 models folder and restart Dream Factory to have them appear here.</p>\n"
if control.model_trigger_words != None and len(control.model_trigger_words) > 0:
if control.config.get('auto_insert_model_trigger') != 'off':
buffer += "<p>Asterisked trigger words will be automatically added "
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def update(shell = False):
#if not os.path.exists(checkpoint_path):
# os.makedirs(checkpoint_path)

#print('\n\nAll done - don\'t forget to place your model.ckpt file in this directory! : ')
#print('\n\nAll done - don\'t forget to place your model.ckpt or model.safetensors file in this directory! : ')
#print(checkpoint_path + '\n')
if not os.path.exists('output'):
os.makedirs('output')
Expand Down