Add Segment Anything Model (SAM) #22654
initial commit
0d59baa4
keys match
8798e621
update, fix conversion
4acf7a2b
fixes, inference working
b0e29947
fix
cd5cd0a6
more fixes
589a9fc1
more fixes
17e624c5
clean up
f43619a4
more clean up
8c30ac3f
fix copies and add convext copied layer norm
dd19b15b
stash
17aeb1b7
pretty big upfate
f02408f3
cleaning
a062a2a7
more cleaning
35722987
fixup stuffs
878c9c5e
fix copies
4eb3eb11
fix iinit
15937e70
update test removing tokenizer
bd7d2b4d
nits
5370e359
add pretrained
51be4cc8
more nits
5d4ea591
remove tracking of pipeline
e7404638
few fixes
5e2c4eaa
update san and conversion script
3840fcda
fix mask decoder and prompt encoder conversion
63a6f759
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
71c53774
fixes
12232d77
small update
272a4709
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
89d82807
fix order
01e6b575
fix
93c5185b
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
b179571e
fix image embeddings
2ad8e6dd
nites
1d503cb0
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
e754719c
few fixes
dba2be37
fix logits
854b01b4
clean up
7409029f
fixes boxes inference
23d358ac
v1 AMG
2e89bed6
clean up
a770a51d
some clean up
bb40cb01
multi points support
30da5089
amg working
c4408c7e
fixup
4a3b75f3
clean up
88757f3e
readme
e2e88d05
update toctree
a246c964
younesbelkada
changed the title [SAM] Add sam model [WIP] Add Segment Anything Model (SAM) 3 years ago
fix type hint
a4475631
multiple fixes
b9fcddd9
fixup
98bf9225
fixes
2a78a319
updates
70c7c611
updates
6b21e687
more tests
bc8c1b89
few fixes
96e320f9
Merge remote-tracking branch 'upstream/main' into HEAD
09ccaeaa
change to `SamForMaskGeneration`
f382b8d4
doc
1c317db4
fixup
2729dbc0
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
39d611cf
fix more tests
5de1b083
multiple fixes
073e730a
fix CI tests
2d27b471
refactor processor
7efbba24
renamings
d467dbd2
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
0d9e20fb
draft the pipeline
25c569b3
refactor
7c896b07
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
88101456
fix tests
9ffb2e15
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
47b12d1c
fix test
20b90b9e
few cleanings
aea7c6a3
fix test
ba7a851f
edit pipelien support chunking
2135c853
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
57209703
udate
4cfc51de
add slow tests
c995f9f3
fix nit
2a8399d6
fixup
2c60040f
fix nit
de963b83
current chunk pipleine
5247ee26
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
80158a42
cast boxes in fp32
be3fa6cd
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
812359ea
nit
8504910d
current updates
b515a627
piepleine works
403cf445
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
e426f3ba
fixup
af4a7e32
clean up config
bc2a2da0
fix slow tests
116b13a2
fix slow tests
ad34e9de
clean up
1926bc14
update doc and pipeline
4a0532e7
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
c8962537
adds more slow tests
88f2463d
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
7b123aab
fix slow tests
3ff5bfca
cleaning
ff87e20f
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
97fb32b7
tests pass
88f84532
add docstring
cf5158ef
fix copies
1f17915e
clean up
bb48be98
support batch of images
dfccc0d2
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
46e0ff1e
style
6df95002
dummy is needed, add tests
ed99b549
fix slow tests
c98e4c0d
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
dd676bef
fix CI
577d285f
update
afb449f8
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
3a4f5e83
adds more tests
fd4dc82b
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
64351873
fixes
c32f43aa
fixes
9886a53b
fixup
8b313a0e
fixes
21e2f7e6
few fixes
b4a7e8b5
filter
9ffbc69f
few fixes
bbdd2ee5
some refactor
1950a167
touches finales
1320e36e
younesbelkada
changed the title [WIP] Add Segment Anything Model (SAM) Add Segment Anything Model (SAM) 3 years ago
fix
0fc86805
style
e996e014
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
a5d8e92b
remove pipeline files
53499e36
fixes nits
d4c4de9f
revert pipeline changes
0115cd93
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
75448c3a
fix test
8b60f3ae
younesbelkada
marked this pull request as ready for review 3 years ago
fixup
f326dfa7
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
53a9f0e5
remove automodel for automatic mask generation
0b578366
fix failing torch tests
9f80285b
update mdx
88b7ac96
revert removal of `MODEL_FOR_AUTOMATIC_MASK_GENERATION_MAPPING`
fc898cab
update sam config based on review
8e86426e
update low_resolution_masks -> pred_masks
818f4765
update processor docstring
480b8e36
remove image processor import empty
ae795461
update for testing
6cccfb36
output vision hidden states + clean recomm
2cb2d9e8
fixup
2d1b3bc3
fixup
e5b0af9d
remove unused
61a9ef55
Update src/transformers/models/sam/modeling_sam.py
e121384a
Update src/transformers/models/sam/image_processing_sam.py
cdb8c076
nits
f9508f1f
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
cd9a8e8b
fix
db415542
fix CI tests and slow tests
8eae6efe
replace with Amy's processor
93a504c9
clearer docstring
8440530e
add `SamVisionNeck`
93e1364f
refactor - all CI tests should pass
58001145
fix broken import on Gcolab
7228cb8a
few fixes here and there
0c61d3b2
fix another bug
d7e805d9
fix more bugs
731d416f
update and merge
08eaaf93
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
81be02c1
correct ckpt
c931b550
address comments
932a4796
add tips
d71cabf9
revert
bbcbad12
fix docstring
4000130d
replace with `SamModel`
b921294c
make fixup
5810f28a
add support for bathed images and batch ed points
44542dcd
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
cdb6abaa
make fixup this time, really
b1f16867
Merge branch 'add-sam' of https://github.com/ArthurZucker/transformer…
b391539d
make fixup again and again
2e44dd2f
few fixes here and there, this should be the touche finale
46c89377
sgugger
approved these changes
on 2023-04-19
Update docs/source/en/model_doc/sam.mdx
ce8b35fc
fixup
533d637a
correct checkpoints
8308f3f4
correct name
d958f144
rm unneeded file
8422b8fa
add notebook
fb3827ac
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub