[REQUEST COMPLETED] lnkdn.ckpt

#9
by Yntec - opened

prompthero has deleted several of his models. All of them have been archived except for lnkdn.ckpt and linkedin_headshot.ckpt that were at this repo:

https://huggingface.co/prompthero/linkedin-diffusion/

It would be great to preserve them if someone downloaded them.

Literally Me FRFR Research Society org

Hey I found this repo is this it?
https://huggingface.co/stablediffusionapi/linkedin-diffusion

note: it's in Diffusers format

Thanks, yeah, looks like I need to learn how to convert diffusers back into a single checkpoint file, the solutions I've tried only convert each individual file into safetensors, which isn't useful without a way to join text encoder+unet+VAE into a file like it was before being converted to diffusers. Would love to see a huggingface space that could do that.

Literally Me FRFR Research Society org
β€’
edited Jul 9

Thanks, yeah, looks like I need to learn how to convert diffusers back into a single checkpoint file, the solutions I've tried only convert each individual file into safetensors, which isn't useful without a way to join text encoder+unet+VAE into a file like it was before being converted to diffusers. Would love to see a huggingface space that could do that.

That's pretty easy.
https://gist.github.com/jachiam/8a5c0b607e38fcc585168b90c686eb05

Thanks for leading in the right direction! I wonder if a space like this one https://huggingface.co/spaces/Yntec/sd-to-diffusers-backup could be created where the diffusers files are included and the output files open a PR so they could be added to a Model Card in the same way checkpoint files are turned into diffusers versions.
That would be the dream as I don't know what to do with script files and don't see a place in your linked code to place the path of the diffusers files and such, and a space like this would allow everyone to do it (there are many other models that don't have a checkpoint file that can be download anymore but they have their diffusers version) so it may be more worthwhile for me to figure out how to build such a space than just running this script for this model.

It's done! @John6666 created this space https://huggingface.co/spaces/John6666/convert_repo_to_safetensors_sd that can be used to convert these kind of models back to safetensors to rescue them from oblivion! So this model has been saved and it's now live here for everyone to enjoy!:

https://huggingface.co/Yntec/lnkdn

Thanks for all the help.

Yntec changed discussion title from [REQUEST] lnkdn.ckpt and linkedin_headshot.ckpt to [REQUEST COMPLETED] lnkdn.ckpt
Jemnite changed discussion status to closed

Sign up or log in to comment