Skip to content

Commit

Permalink
TinyViT backbone for segment-anything. (#787)
Browse files Browse the repository at this point in the history
* TinyViT.

* More TinyViT.

* Add more to the tinyvit backbone.

* Proper padding.

* Plus ViT.

* Add the tiniest vit spec.
  • Loading branch information
LaurentMazare authored Sep 9, 2023
1 parent 3cd7e7b commit b7cd584
Show file tree
Hide file tree
Showing 3 changed files with 577 additions and 13 deletions.
1 change: 1 addition & 0 deletions candle-examples/examples/segment-anything/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub mod model_image_encoder;
pub mod model_mask_decoder;
pub mod model_prompt_encoder;
pub mod model_sam;
pub mod model_tiny_vit;
pub mod model_transformer;

use candle::{DType, Result, Tensor};
Expand Down
Loading

0 comments on commit b7cd584

Please sign in to comment.