# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "stable-diffusion" version = "0.1.9" authors = ["Danilo Guanabara "] description = "Stable Diffusion" homepage = "https://github.com/sensorial-systems/stable-diffusion" documentation = "https://docs.rs/stable-diffusion-trainer" readme = "README.md" keywords = [ "stable-diffusion", "generative-ai", "trainer", ] license = "Apache-2.0" repository = "https://github.com/sensorial-systems/stable-diffusion" [dependencies.anyhow] version = "1" features = ["backtrace"] [dependencies.candle] version = "0.4.1" package = "candle-core" [dependencies.candle-flash-attn] version = "0.4.1" optional = true [dependencies.candle-nn] version = "0.4.1" [dependencies.candle-onnx] version = "0.4.1" optional = true [dependencies.candle-transformers] version = "0.4.1" [dependencies.cudarc] version = "0.10.0" features = ["f16"] optional = true [dependencies.half] version = "2.3.1" features = [ "num-traits", "use-intrinsics", "rand_distr", ] optional = true [dependencies.hf-hub] version = "0.3.0" features = ["tokio"] [dependencies.image] version = "0.24.7" features = [ "jpeg", "png", ] default-features = false [dependencies.imageproc] version = "0.23.0" default-features = false [dependencies.intel-mkl-src] version = "0.8.1" features = ["mkl-static-lp64-iomp"] optional = true [dependencies.rand] version = "0.8.5" [dependencies.safetensors] version = "0.4.1" [dependencies.tokenizers] version = "0.15.0" features = ["onig"] default-features = false [build-dependencies.anyhow] version = "1" features = ["backtrace"] [build-dependencies.bindgen_cuda] version = "0.1.1" optional = true [features] cuda = [ "candle/cuda", "candle-nn/cuda", "candle-transformers/cuda", "dep:bindgen_cuda", ] cudnn = ["candle/cudnn"] default = ["cuda"] flash-attn = [ "cuda", "candle-transformers/flash-attn", "dep:candle-flash-attn", ] metal = [ "candle/metal", "candle-nn/metal", ] mkl = [ "dep:intel-mkl-src", "candle/mkl", "candle-nn/mkl", "candle-transformers/mkl", ] nccl = [ "cuda", "cudarc/nccl", "dep:half", ] onnx = ["candle-onnx"]