facebookresearch / segment-anything

The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
47.9k stars 5.67k forks source link

Extracting deep features #650

Closed bullshit123123 closed 10 months ago

bullshit123123 commented 11 months ago

How can we extract the deep features of the network? Looking forward to everyone's reply very much!

heyoeyo commented 11 months ago

The short answer is that you can grab the features off the predictor using: predictor.features A longer answer can be found in issue #588

bullshit123123 commented 10 months ago

The short answer is that you can grab the features off the predictor using: predictor.features A longer answer can be found in issue #588

Thanks!!That's helpful!!