BlafKing / sd-civitai-browser-plus

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.
GNU Affero General Public License v3.0
289 stars 44 forks source link

[Bug]: extra "safetensors"suffix added to saved JSON filename #267

Closed wangzan1990 closed 3 months ago

wangzan1990 commented 3 months ago

Describe the bug.

When the model file is downloaded and the json file is saved, the filename of JSON file is added with the safetensors suffix. e,g : "xx.json" and "xx.safetensors.json" appeared in the same place. Resulting in not being able to see the description on the checkpoints page

Steps to reproduce the problem.

download a model

Expected behavior

Could you please fix it?

System info

Console logs

---
CivitAI Browser+: Model saved to: D:\sd-webui-aki\sd-webui-aki-v4.7\models\Stable-diffusion\realcartoonRealistic_v14.safetensors
CivitAI Browser+: Model info saved to "D:\sd-webui-aki\sd-webui-aki-v4.7\models\Stable-diffusion\realcartoonRealistic_v14.safetensors.json"
CivitAI Browser+: Saved HTML to "D:\sd-webui-aki\sd-webui-aki-v4.7\models\Stable-diffusion\realcartoonRealistic_v14.safetensors.html"
CivitAI Browser+: Preview saved at "D:\sd-webui-aki\sd-webui-aki-v4.7\models\Stable-diffusion\realcartoonRealistic_v14.preview.png"

Additional information

No response

BlafKing commented 3 months ago

Thanks for reporting!

This should now be fixed in the latest commit! I'll mark this as resolved 👍🏻