Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SegGPT #27735

Merged
merged 122 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
fecf251
First commit
EduardoPach Nov 27, 2023
2fbf69b
Improvements
EduardoPach Nov 27, 2023
155e486
More improvements
EduardoPach Nov 27, 2023
2de229a
Converted original checkpoint to HF checkpoint
EduardoPach Nov 28, 2023
b3d5049
Fix style
EduardoPach Nov 28, 2023
fe53c92
Fixed forward
EduardoPach Nov 29, 2023
051b6c8
More improvements
EduardoPach Nov 30, 2023
70d0290
More improvements
EduardoPach Dec 5, 2023
951ac86
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Dec 7, 2023
14b70a7
Remove asserts
EduardoPach Dec 7, 2023
dce5f4a
Merge branch 'adding-seggpt' of https://github.com/EduardoPach/transf…
EduardoPach Dec 7, 2023
3c8e12a
Remove unnecessary attributes
EduardoPach Dec 7, 2023
449fa80
Changed model name to camel case
EduardoPach Dec 7, 2023
41e409b
Improve forward doc
EduardoPach Dec 7, 2023
3e0a77a
Improve tests
EduardoPach Dec 7, 2023
b039594
More improvements
EduardoPach Dec 7, 2023
5c604d4
Fix copies
EduardoPach Dec 7, 2023
00c8bda
Fix doc
EduardoPach Dec 7, 2023
dfc48dd
Make SegGptImageProcessor more flexible
EduardoPach Dec 7, 2023
4152a68
Added few-shot test
EduardoPach Dec 8, 2023
c04a177
Fix merge
NielsRogge Dec 10, 2023
acc58cc
Fix style
NielsRogge Dec 10, 2023
8bb30d5
Update READMEs and docs
NielsRogge Dec 10, 2023
6ec868b
Update READMEs
NielsRogge Dec 10, 2023
88e8144
Make inputs required
NielsRogge Dec 10, 2023
2a066e9
Add SegGptForImageSegmentation
NielsRogge Dec 11, 2023
09187e0
Make tests pass
EduardoPach Dec 12, 2023
5190205
Rename to out_indicies
EduardoPach Dec 12, 2023
bf0bab9
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Dec 13, 2023
c38de07
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Dec 13, 2023
52de2a7
Fixed naming convention
EduardoPach Dec 13, 2023
bebb958
Copying SegGptMlp from modeling_sam.py
EduardoPach Dec 13, 2023
2c7c311
Some minor improvements
NielsRogge Dec 12, 2023
75b2d90
Remove mlp_ratio
NielsRogge Dec 13, 2023
a612330
Fix docstrings
NielsRogge Dec 14, 2023
74383a8
Fixed docstring match
Jan 7, 2024
932a01f
Objects defined before use
Jan 7, 2024
f54d036
Storing only patch_size and beta for SegGptLoss
Jan 7, 2024
b283608
removed _prepare_inputs method
Jan 7, 2024
0fcfbcf
Removed modified from headers
Jan 7, 2024
64d2a90
Renamed to output_indicies
Jan 7, 2024
559c5be
Removed unnecessary einsums
Jan 7, 2024
45ce96b
Update tests/models/seggpt/test_modeling_seggpt.py
EduardoPach Jan 7, 2024
6f982aa
Update tests/models/seggpt/test_modeling_seggpt.py
EduardoPach Jan 7, 2024
c4d5c00
Update tests/models/seggpt/test_modeling_seggpt.py
EduardoPach Jan 7, 2024
6bc0571
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Jan 7, 2024
33c3f4d
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Jan 7, 2024
a435033
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Jan 7, 2024
798a7d3
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Jan 7, 2024
3b443dc
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Jan 7, 2024
e24c369
Fixing issues
Jan 7, 2024
bd0b552
Raise error as soon as possible
Jan 7, 2024
cca0937
More fixes
Jan 7, 2024
39e2767
Jan 7, 2024
3545672
Fix merge
NielsRogge Jan 14, 2024
7228221
Fix merge
NielsRogge Jan 14, 2024
6133e40
Added palette to SegGptImageProcessor
Jan 25, 2024
cf93d25
Merge branch 'adding-seggpt' of https://github.com/EduardoPach/transf…
Jan 25, 2024
1837324
Fixed typo
Jan 25, 2024
dc3cf80
Fixed shape typo
Jan 25, 2024
fc2304c
Added permute before doing palette to class mapping
Jan 25, 2024
b086384
Fixed style
Jan 26, 2024
0c9ad32
Fixed and added tests
Jan 26, 2024
beab961
Fixed docstrings
Jan 26, 2024
bd35b95
Matching SegFormer API for post_processing_semantic_segmentation
Feb 5, 2024
48d7fc3
Merge remote-tracking branch 'upstream/main' into adding-seggpt
Feb 5, 2024
3bcdf52
Fixed copies
Feb 5, 2024
900fac9
Fixed SegGptImageProcessor to handle both binary and RGB masks
Feb 5, 2024
abfc78a
Updated docstrings of SegGptImageProcessor
Feb 5, 2024
ba3f9cb
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 7, 2024
09cdd0e
Update docs/source/en/model_doc/seggpt.md
EduardoPach Feb 7, 2024
690de06
Update src/transformers/models/seggpt/configuration_seggpt.py
EduardoPach Feb 7, 2024
37fabe2
Update src/transformers/models/seggpt/convert_seggpt_to_hf.py
EduardoPach Feb 7, 2024
a2a45cd
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 7, 2024
59787c2
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 7, 2024
cf3c1da
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 7, 2024
706285f
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 7, 2024
755a7b5
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 7, 2024
c6257f5
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 7, 2024
041c400
Update tests/models/seggpt/test_image_processing_seggpt.py
EduardoPach Feb 7, 2024
3ffecbc
Update tests/models/seggpt/test_modeling_seggpt.py
EduardoPach Feb 7, 2024
2d1d77c
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 7, 2024
6354a60
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 7, 2024
f5e23c2
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 7, 2024
d347473
Object definitions above & fix style
Feb 7, 2024
9e35aa6
Renamed output_indices to intermediate_feature_indices
Feb 7, 2024
f6f068c
Removed unnecessary check on bool_masked_pos
Feb 7, 2024
a0cbe9b
Loss first in the outputs
Feb 7, 2024
f1dc953
Added validation for do_normalize
Feb 7, 2024
b8b1d5e
Improved SegGptImageProcessor and added new tests
Feb 10, 2024
d172ca0
Added comment
Feb 10, 2024
88db53f
Added docstrings to SegGptLoss
Feb 10, 2024
db06f21
Reimplemented ensemble condition logic in SegGptEncoder
Feb 10, 2024
5514650
Merge remote-tracking branch 'upstream/main' into adding-seggpt
Feb 10, 2024
7c4805e
Update src/transformers/models/seggpt/__init__.py
EduardoPach Feb 10, 2024
6ad819b
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 10, 2024
9dab61f
Update src/transformers/models/seggpt/convert_seggpt_to_hf.py
EduardoPach Feb 10, 2024
1b87260
Update src/transformers/models/seggpt/configuration_seggpt.py
EduardoPach Feb 10, 2024
c74ca80
Updated docstrings to use post_process_semantic_segmentation
Feb 10, 2024
e5f2c8c
Merge branch 'adding-seggpt' of https://github.com/EduardoPach/transf…
Feb 10, 2024
71dfbf2
Merge remote-tracking branch 'upstream/main' into adding-seggpt
Feb 12, 2024
af21937
Fixed typo on docstrings
Feb 12, 2024
62a82eb
moved pixel values test to test_image_processing_seggpt
Feb 13, 2024
4d425df
Merge remote-tracking branch 'upstream/main' into adding-seggpt
Feb 15, 2024
460f3fa
Addressed comments
Feb 15, 2024
f62b21e
Update src/transformers/models/seggpt/configuration_seggpt.py
EduardoPach Feb 15, 2024
620381d
Update src/transformers/models/seggpt/image_processing_seggpt.py
EduardoPach Feb 15, 2024
9999d0b
Update src/transformers/models/seggpt/configuration_seggpt.py
EduardoPach Feb 15, 2024
b73b21e
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 15, 2024
01c9f7e
Updated docstrings for SegGptLoss
Feb 15, 2024
c507557
Merge branch 'adding-seggpt' of https://github.com/EduardoPach/transf…
Feb 15, 2024
3373cbb
Address comments
Feb 15, 2024
f701039
Added SegGpt example to model docs
Feb 15, 2024
0e46681
Update src/transformers/models/seggpt/modeling_seggpt.py
EduardoPach Feb 21, 2024
43f2d34
moved patchify and unpatchify
EduardoPach Feb 21, 2024
ebc96f4
Merge remote-tracking branch 'upstream/main' into adding-seggpt
EduardoPach Feb 21, 2024
90f911d
Rename checkpoint
EduardoPach Feb 22, 2024
efb85d6
Renamed intermediate_features to intermediate_hidden_states for consi…
EduardoPach Feb 22, 2024
afeb9f2
Update src/transformers/models/seggpt/configuration_seggpt.py
EduardoPach Feb 22, 2024
7e22958
Replaced post_process_masks for post_process_semantic_segmentation in…
EduardoPach Feb 26, 2024
32dd142
Merge branch 'adding-seggpt' of https://github.com/EduardoPach/transf…
EduardoPach Feb 26, 2024
05f0a85
Merge remote-tracking branch 'upstream/main' into adding-seggpt
EduardoPach Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix merge
  • Loading branch information
NielsRogge committed Dec 10, 2023
commit c04a1778a4cfaa3234eb9c118461b4fedb5ce534
4 changes: 4 additions & 0 deletions src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5405,6 +5405,10 @@
)
from .models.segformer import SEGFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, SegformerConfig
from .models.seggpt import SEGGPT_PRETRAINED_CONFIG_ARCHIVE_MAP, SegGptConfig
from .models.seamless_m4t_v2 import (
SEAMLESS_M4T_V2_PRETRAINED_CONFIG_ARCHIVE_MAP,
SeamlessM4Tv2Config,
)
from .models.sew import SEW_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWConfig
from .models.sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig
from .models.speech_encoder_decoder import SpeechEncoderDecoderConfig
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.