alexandersokol / sd-model-organizer

model organizer extension for stablediffusion-web-ui
96 stars 13 forks source link

Some help please. How do I get the SD Model Organizer to drop the file extension when it names a new model. Just name it the file name minus the extension. I would like to get rid of the safetensors in "Chibi Style.saftensors" and just have "Chibi Style". As I have said before I know just enough to screw everything up. #95

Open JRX1138 opened 4 months ago

JRX1138 commented 4 months ago

Some help please. How do I get the SD Model Organizer to drop the file extension when it names a new model. Just name it the file name minus the extension. I would like to get rid of the safetensors in "Chibi Style.saftensors" and just have "Chibi Style". As I have said before I know just enough to screw everything up.

harukaxxxx commented 4 months ago

Why are you doing this? The file extension should be specified for the system to run.

JRX1138 commented 4 months ago

i don't want to change the filename itself. i want to change the name assigned the the model, the same name you can change inside of model organizer user interface. There is no real reason, just the way i want it

harukaxxxx commented 4 months ago

Do you want to change the record name (like image bellow)? Please clarify your specific request. image

JRX1138 commented 3 months ago

i would just name it Latte Art XL 458569 ( the name, my abbreviation for the type of file, and the civitai model number,) this is what i rename the files to. its not going to give me bad dreams they don't change, just me messing around.

GreenGhost21 commented 3 months ago

If you're talking about what's in the box, I'm assuming you're adding the models manually, as that's the most likely reason why they'd have .safetensors in their name.

Manually-added models don't have records automatically made for them; you have to add the records manually as well.

Personally, I try to not bother with adding models outside of Model Organizer's own Civitai downloader, since that automatically makes a record for the downloaded model. It's under Import/Export > Import Civitai URL. You can also use it to make a record and then edit the record to link to an existing model!

There's a reason I use this extension in particular for all my model downloading.

harukaxxxx commented 3 months ago

Finally grasped the key issue, thanks to @GreenGhost21. When manually adding a model to MO, it uses the filename with extension for the record. I can delve into the code to prevent adding the model's extension to the record's name.

Snipaste_2024-07-19_12-56-56

I use MO like @GreenGhost21, adding models via importing civitai URLs, and everything runs smoothly, thanks to @alexandersokol. 👍

JRX1138 commented 3 months ago

its not enough of a deal to spend much time on. They have the safetensor extension on them when they first are imported. i open the edit window to remove it and add notes. like i said its not a big deal, just something i was playing with. its great the way it is. I'm just always screwing with something I shouldn't be. I'll start using the URL method