Arthur
474bf508df
Add Segment Anything Model (SAM) (#22654)
* initial commit
* keys match
* update, fix conversion
* fixes, inference working
* fix
* more fixes
* more fixes
* clean up
* more clean up
* fix copies and add convext copied layer norm
* stash
* pretty big upfate
* cleaning
* more cleaning
* fixup stuffs
* fix copies
* fix iinit
* update test removing tokenizer
* nits
* add pretrained
* more nits
* remove tracking of pipeline
* few fixes
* update san and conversion script
* fix mask decoder and prompt encoder conversion
* fixes
* small update
* fix order
* fix
* fix image embeddings
* nites
* few fixes
* fix logits
* clean up
* fixes boxes inference
* v1 AMG
* clean up
* some clean up
* multi points support
* amg working
* fixup
* clean up
* readme
* update toctree
* fix type hint
* multiple fixes
* fixup
* fixes
* updates
* updates
* more tests
* few fixes
* change to `SamForMaskGeneration`
* doc
* fixup
* fix more tests
* multiple fixes
* fix CI tests
* refactor processor
* renamings
* draft the pipeline
* refactor
* fix tests
* fix test
* few cleanings
* fix test
* edit pipelien support chunking
* udate
* add slow tests
* fix nit
* fixup
* fix nit
* current chunk pipleine
* cast boxes in fp32
* nit
* current updates
* piepleine works
* fixup
* clean up config
* fix slow tests
* fix slow tests
* clean up
* update doc and pipeline
* adds more slow tests
* fix slow tests
* cleaning
* tests pass
* add docstring
* fix copies
* clean up
* support batch of images
* style
* dummy is needed, add tests
* fix slow tests
* fix CI
* update
* adds more tests
* fixes
* fixes
* fixup
* fixes
* few fixes
* filter
* few fixes
* some refactor
* touches finales
* fix
* style
* remove pipeline files
* fixes nits
* revert pipeline changes
* fix test
* fixup
* remove automodel for automatic mask generation
* fix failing torch tests
* update mdx
* revert removal of `MODEL_FOR_AUTOMATIC_MASK_GENERATION_MAPPING`
* update sam config based on review
Co-authored-by: amyeroberts <aeroberts4444@gmail.com>
Co-authored-by: sgugger <sylvain.gugger@gmail.com>
* update low_resolution_masks -> pred_masks
inti ln with layer_norm_eps
add_decomposed_rel_pos doc
forward doc of SamForMaskGeneration
* update processor docstring
* remove image processor import empty
* update for testing
* output vision hidden states + clean recomm
also test all iou values
* fixup
* fixup
* remove unused
* Update src/transformers/models/sam/modeling_sam.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/models/sam/image_processing_sam.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* nits
* fix
* fix CI tests and slow tests
* replace with Amy's processor
* clearer docstring
* add `SamVisionNeck`
* refactor - all CI tests should pass
* fix broken import on Gcolab
* few fixes here and there
* fix another bug
* fix more bugs
* update and merge
* correct ckpt
* address comments
* add tips
* revert
* fix docstring
* replace with `SamModel`
* make fixup
* add support for bathed images and batch ed points
* make fixup this time, really
* make fixup again and again
* few fixes here and there, this should be the touche finale
* Update docs/source/en/model_doc/sam.mdx
* fixup
* correct checkpoints
* correct name
* rm unneeded file
* add notebook
---------
Co-authored-by: younesbelkada <younesbelkada@gmail.com>
Co-authored-by: amyeroberts <aeroberts4444@gmail.com>
Co-authored-by: sgugger <sylvain.gugger@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Younes Belkada <49240599+younesbelkada@users.noreply.github.com>
2023-04-19 21:01:49 +02:00
..
2023-04-03 15:04:37 +01:00
2023-04-12 08:01:18 -04:00
2023-04-19 21:01:49 +02:00
2023-04-14 16:18:15 +01:00
2022-04-04 10:25:46 -04:00
2023-04-19 21:01:49 +02:00
2022-08-08 10:53:52 -05:00
2023-04-11 08:41:53 -04:00
2022-12-12 09:23:23 -05:00
2023-04-11 08:41:53 -04:00
2023-02-15 10:35:14 -08:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2023-03-08 07:54:30 -05:00
2022-11-07 09:19:04 -05:00
2023-02-27 08:36:36 +01:00
2022-04-04 10:25:46 -04:00
2022-09-30 20:30:38 +01:00
2023-01-25 11:33:39 -05:00
2022-11-07 13:57:39 -05:00
2022-12-12 10:38:56 -05:00
2022-04-04 10:25:46 -04:00
2023-04-18 17:36:56 +01:00
2023-03-13 19:09:37 -04:00
2022-10-11 22:54:19 -04:00
2023-04-19 21:01:49 +02:00
2023-03-09 07:44:58 -05:00
2022-04-04 10:25:46 -04:00
2023-02-06 09:26:22 -05:00
2023-02-15 10:35:14 -08:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2023-03-20 14:18:55 -04:00
2022-05-16 13:36:41 +02:00
2022-12-01 16:52:13 +01:00
2022-12-01 16:52:13 +01:00
2023-02-07 15:09:27 +01:00
2022-06-23 14:51:54 +02:00
2022-11-28 08:54:35 -05:00
2023-02-06 09:20:43 -05:00
2022-11-30 10:41:18 -05:00
2022-12-08 11:18:52 -05:00
2022-11-30 10:41:18 -05:00
2023-02-07 15:19:19 +00:00
2022-11-30 10:41:18 -05:00
2022-11-30 10:41:18 -05:00
2023-03-28 09:09:17 -04:00
2022-11-30 14:50:55 +00:00
2023-04-12 15:20:25 +01:00
2023-02-06 18:10:56 -05:00
2023-04-11 08:41:53 -04:00
2023-01-19 08:43:36 -05:00
2023-02-23 09:41:28 +01:00
2022-08-06 09:38:55 +02:00
2022-04-04 10:25:46 -04:00
2023-03-24 08:17:27 -04:00
2023-02-13 10:09:00 -05:00
2023-02-02 11:41:27 -08:00
2023-02-27 12:33:34 +01:00
2023-01-18 17:53:05 +00:00
2022-11-15 01:18:13 +01:00
2022-10-03 13:18:29 -07:00
2023-01-20 07:38:15 -08:00
2023-03-01 08:26:25 -05:00