transformers
7480e967 - Add TIPSv2 (#46347)

Commit
140 days ago
Add TIPSv2 (#46347) * Add TIPSv2 * fix: fix-repo * test: add inference test * test: add inference test * move processing to modular * simplify Tipsv2Tokenizer * drop remote code test * remove redundant vision config attributes * make Tipsv2TextConfig inherit from Siglip2TextConfig * use modular for loss * fix mlp_ratio in tests * match clip outputs * add configuration backwards compatibility handling * fix so400m checkpoint * add temporary test * clarifiy embeddings dtype * update base_model_prefix * remove unused attributes * add Tipsv2SinusoidalPositionalEmbedding * cleanup text attention * inherit from CLIPEncoderLayer * inherit from CLIPMLP * inherit from CLIPEncoder * remove valid_mask * simplify text model _init_weights * move config validation * minor cleanup * fix test * add Tipsv2VisionBackbone * make temperature a learnable parameter * add tipsv2_dpt * make fix-repo * add dpt tests * cleanup tipsv2 tests * fix-repo * fix conversion mapping * fix conversion mapping * apply some fixes * fix weight conversion * ignore unexpected keys * update test * Update conversion mapping * update tests * add post processing expected values * fix tests * inherit from tipsv2imageprocessor * inherit from DPTReassembleLayer * handle temperature and swiglu * make fix-repo * inherit modules where possible * fix depth activation * add bin regressor * fix regressor init * cleanup patch size handling * cleanup init * add depth_decoder_activation * add NormalEstimatorOutput * raise error on labels * cleanup segmentation logits naming * cleanup class definition order * fix tests * cleanup tests * fix image processing tests * fix image processing * update segmentation loss computation * cleanup configuration * cleanup processing docstrings * rename to Tipsv2DptFeaturesToDepth * remove module docstring * relax config validation * use Sapiens2NormalEstimatorOutput * cleanup docstrings * update tipsv2 docs * add tipsv2 dpt docs * handle original dpt configs * fix block indices mapping * make fix-repo * add EmbeddingAccessMixin * use init.constant_ * fix temperature docs value * update tokenizer * use temp repo * fix tokenizer * use temp repo everywhere * remove config backwards compatibility * update docs * update docs * add images to docs * update weight mapping * revert backbone mapping * try fix weight mapping * cleanup conversion mapping * style * update docstrings * update docstrings * add checkpoint to dpt config * add return_segmentation_scores * fix-repo * rename to Tipsv2DptForDensePrediction * rename to Tipsv2DptForDensePrediction * skip conversion mapping tests * update docs * fix-repo * remove sequential * remove embedding access * switch to google repo for tests * use AutoModel in docs * remove sentencepiece requires * set padding side * do not pass unk * remove pad token id check * remove post init * cleanup * remove _keys_to_ignore_on_load_unexpected * remove extra args * remove _keys_to_ignore_on_load_unexpected * walrus magic * super kwargs * simplify call * switch everything to google * fix tests * fix g14 conversion * add temporary revision * remove interpolate_antialias and interpolate_offset * skip correct test * fix get_set_input_embeddings * Update src/transformers/models/tipsv2/modular_tipsv2.py Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com> * revert change * remove unused tests * update date * clarify comment * fix-repo * remove revision * clarify docs * update conversion mapping and tests * add tokenizer converter WIP * update docstring * fix docstring * remove pooler * remove return_dict * add import * update docstring * update conversion mapping * remove requires sentencepiece in tests * remove try/except * rename Tipsv2DptOutput to Tipsv2DptDensePredictorOutput * fix-repo * update base_model_prefix * revert convert tokenizer * update tokenizer tests * fix test * fix test * uncomment classes * add cpu expectations --------- Co-authored-by: guarin <43336610+guarin@users.noreply.github.com> Co-authored-by: Pablo Montalvo <39954772+molbap@users.noreply.github.com>
Author
Parents
Loading