Build Guide

Overview

This document describes how to build MindIE-SD from source, generate a .whl package, install it, and run it locally.

Environment Preparation

Image-Based Installation

For MindIE image acquisition, refer to the image installation guide.

Container or Bare-Metal Installation

  1. For container or bare-metal installation, refer to preparing software packages and dependencies.
  2. For dependency installation steps, refer to installing software packages and dependencies.

Build and Install

  1. Clone the repository and build the wheel:

    git clone https://gitcode.com/Ascend/MindIE-SD.git && cd MindIE-SD
    python -m build --wheel --no-isolation
    

    Note If wheel or related build dependencies are missing, install them first:

    pip install build wheel
    
  2. Install MindIE SD.

    • Option 1: Standard installation with the default version

      cd dist
      pip install mindiesd-*.whl
      
    • Option 2: Editable installation for development

      pip install -e .
      

Upgrade

For upgrade instructions, refer to the upgrade guide.

Uninstall

For uninstall instructions, refer to the uninstallation guide.