Skip to content

Commit

Permalink
Update webui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang authored Apr 13, 2023
1 parent dd88ce6 commit b6105fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ def register_sd_models(sd_models_dir):
for file in get_models(sd_models_dir, ['*.ckpt', '*.safetensors']):
hash = modules.sd_models.model_hash(file)
item = {}
##remove the prefix, but remain the sub dir path in model_name. eg. 'river/jp-style-girl-2_200_lora.safetensors [4d3a456f]'
item['model_name'] = file.replace("/tmp/models/Stable-diffusion/",'')
item['hash'] = hash
item['filename'] = file
Expand Down

0 comments on commit b6105fd

Please sign in to comment.