Cargo Features

segment-anything-rs has no features set by default.

[dependencies]
segment-anything-rs = { version = "0.4.0", features = ["flash", "accelerate", "cuda", "cudnn", "mkl", "nccl", "metal"] }
flash

Enables flash-attn of candle-transformers

accelerate

Enables accelerate-src, accelerate of candle-core, candle-nn, and candle-transformers

cuda nccl?

Enables cuda of candle-core, candle-nn, and candle-transformers

cudnn

Enables cudnn of candle-core

mkl

Enables intel-mkl-src, mkl of candle-core, candle-nn, and candle-transformers

nccl = cuda

Enables half, nccl of cudarc ^0.9.14

metal

Enables metal of candle-core, candle-nn, and candle-transformers

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

cudarc nccl?

Enables cudarc ^0.9.14