Skip to content

Commit

Permalink
support *.safetensors,*.bin embeddings
Browse files Browse the repository at this point in the history
 * EasyNegative.safetensors
 * ulzzang-6500-v1.1.bin
  • Loading branch information
wkpark committed May 26, 2023
1 parent 68a419d commit 2e97ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion civitai/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def load_resource_list(types=['LORA', 'LoCon', 'Hypernetwork', 'TextualInversion
resources += get_resources_in_folder('Hypernetwork', shared.cmd_opts.hypernetwork_dir, ['pt', 'safetensors', 'ckpt'])
if 'TextualInversion' in types:
resources = [r for r in resources if r['type'] != 'TextualInversion']
resources += get_resources_in_folder('TextualInversion', shared.cmd_opts.embeddings_dir, ['pt'])
resources += get_resources_in_folder('TextualInversion', shared.cmd_opts.embeddings_dir, ['pt', 'bin', 'safetensors'])
if 'Checkpoint' in types:
resources = [r for r in resources if r['type'] != 'Checkpoint']
resources += get_resources_in_folder('Checkpoint', sd_models.model_path, ['safetensors', 'ckpt'], ['vae.safetensors', 'vae.ckpt'])
Expand Down

0 comments on commit 2e97ecf

Please sign in to comment.