Giter Site home page Giter Site logo

meru-ai / safe-and-stable-ckpt2safetensors-conversion-tool-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from distyapps/safe-and-stable-ckpt2safetensors-conversion-tool-gui

0.0 0.0 0.0 523 KB

Convert your Stable Diffusion checkpoints quickly and easily.

License: MIT License

Python 100.00%

safe-and-stable-ckpt2safetensors-conversion-tool-gui's Introduction


To continue to develop i will be happy to get some support.

Safe & Stable - Ckpt2Safetensors Conversion Tool-GUI

Convert your Stable Diffusion checkpoints quickly and easily.

This tool conversion process still requires the .ckpt data to be loaded first, which means that it may potentially load pickles. It is recommended to use this tool only with safe models or convert the models online to avoid any potential security issues.

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. License
  3. Roadmap
  4. Contact
  5. My Other Projects
  6. Acknowledgments

Update

Version 0.1.1

I am happy to share the release of version 0.1.1 of Safe-and-Stable-Ckpt2Safetensors-Conversion-Tool-GUI

This version includes the following new features and improvements:

  • Support for converting back to ckpt. now you can convert safetensors to ckpt and vice versa.
  • A file explorer for easier conversion.
  • The option to add a suffix to the output file, allowing users to keep the original file.
  • A hash check for files, displaying the first 8 characters of the hash.

Please note that converting a ckpt file to a safetensors file will change the hash of the file due the structure change of the file.

However, when converting back and forth between ckpt and safetensors, the hash will remain consistent.

For example, an original ckpt file with the hash "ccf3615f" will be converted to a safetensors file with the hash "0248da5c", and back to a ckpt file with the hash "68ed20ac". Both hashes will remain consistent between the two file formats.

Please consider donating to the project if you find it useful,so that I can maintain and improve this tool and other projects.

I hope you find these new features and improvements useful. As always, i welcome your feedback and suggestions.

Thank you for using my project.

(back to top)

About The Project

Safe & Stable is a tool for converting stable diffusion .ckpt files to the new and secure .safetensors format for storing tensors as pure data.

This format provides improved security compared to the pickle format, as it prevents the inclusion of arbitrary and potentially malicious Python code. It also has the potential to improve the performance of model loading on CPU and GPU.

Converting to .safetensors is recommended for stable diffusion users who want to improve the security and performance of their model storage and loading processes. It is especially useful for when distributing new models and merges.

The tool's graphical user interface (GUI) makes it easy for users to select the input files, view the progress of the conversion saving process.

Note that the conversion process still requires the .ckpt data to be loaded first, which means potentially loading pickles. It is recommended to scan for pickles before converting a model or convert online if no .safetensors version is provided. Once models start being distributed only in .safetensors format, this will no longer be necessary.

It is important to always check if the model works correctly before deleting the original .ckpt file.

(back to top)

Downloads

Archived version (Windows) 7z

Archived version (Windows) Zip

Releases

Linux Installation (tested on python 3.8.10)

  • git clone this repo
  • cd into the repo
  • python3.8 -m venv venv
  • ./venv/bin/activate
  • pip install -r requirements.txt
  • python run_app_gui.py

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Roadmap

The roadmap for the Safe & Stable conversion tool will be determined by the level of support. and interest it receives.

If the tool proves to be useful, i have plans to continue improving its features and functionality, and to add support for new model formats and versions.

Thank you for any support.

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contact

@The_diSty - [email protected]

Project Link: https://github.com/diStyApps/Safe-and-Stable-Ckpt2Safetensors-Conversion-Tool-GUI

(back to top)

My Other Projects

Project Link: https://github.com/diStyApps/Stable-Diffusion-Pickle-Scanner-GUI

(back to top)

Acknowledgments

(back to top)

safe-and-stable-ckpt2safetensors-conversion-tool-gui's People

Contributors

distyapps avatar gulige avatar lalamax3d avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.