![]() ![]() I will use the non-default dreamlike-photoreal-2.0 for this example. python -m python_coreml_stable_diffusion.torch2coreml -convert-unet -convert-text-encoder -convert-vae-decoder -convert-safety-checker -o ~/Desktop/AI_MODELSĥ.2 Converting Different Model: dreamlike-artdreamlike-photoreal-2.0 Generate Apple's CoreML model files from Hugging Face and store them in AI_MODELS. 5.1 Converting Default Model: CompVis/Default Model is v1.4. Pick the version of Stable Diffusion you want to run on Hugging Face via Hugging Face Hub. Step 5 - Convert Stable Diffusion Model to Apple's CoreMLĬreate a folder to place AI models. Log into Hugging Face via Terminal huggingface-cli login Register an account on Hugging Face and generate an API Access Token. Pip is the package manager for this git repo. mkdir ~/Desktop/Ĭhange directory into repo. I will download the git repo on my desktop to make things obvious.Ĭhange the directory to your desktop. Step 2 - Create a Python environment and install dependencies conda create -n coreml_stable_diffusion python=3.8 -yĪctivate your python environment. Verify that you can access Anaconda from your Terminal. ![]() echo 'export PATH=/opt/homebrew/anaconda3/bin:$PATH' > ~/.zshrcĮither restart the Terminal or run this command. echo 'export PATH=/usr/local/anaconda3/bin:$PATH' > ~/.zshrcĪdd this other path to your environment. opt/homebrew/anaconda3/bin/conda init zshĪdd this path to your environment. brew install -cask anacondaĬonfiguring Paths in Terminal New Way (Recommended)Īnaconda no longer suggests modifying the path. It will help you better understand where your libraries live. You can install it using a distribution file or via Homebrew. pyenv global 3.8.16Īnaconda is a Python-based toolbelt for data scientists. pyenv is the package manager used for installing multiple versions of python. The Homebrew package manager is the easiest way to install developer tools on a Mac. Restart Terminal to reload your PATH environment variable to include Cargo package manager ![]() Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo). Step 0 - Install Homebrew package manager Apple's awesome update enables us to use Stable Diffusion on an M1 Macbook Pro. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |