Run the following command to install dependencies:
pip install -r requirements.txtDownload the checkpoint from the official repository: Segment Anything Model - Checkpoints
Move the downloaded checkpoint file to the following directory:
models/pthRun the script to export the encoder model:
python export_encoder_model.py --quantize=False --device="cpu"Modify your CMakeLists.txt file to replace the paths linking to the bin and lib directories of TensorRT.
Compile and run the SAM target from the build/Debug directory, or modify the path in the main file accordingly.