Downloads · 30 days
580
5% of all-time downloads
EPFL-VILAB/4M_tokenizers_sam-instance_1k_64
4M_tokenizers_sam-instance_1k_64 is a machine learning model from EPFL-VILAB. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for ml-4m. The card lists the license as other.
A framework for training any-to-any multimodal foundation models. <brScalable. Open-sourced. Across tens of modalities and tasks.
Downloads · 30 days
580
5% of all-time downloads
All-time downloads
12.1K
Public
Parameters
183M
1.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors730 MB · 100%
From the Hugging Face model README
A framework for training any-to-any multimodal foundation models. <br>Scalable. Open-sourced. Across tens of modalities and tasks.
Official implementation and pre-trained models for :
4M: Massively Multimodal Masked Modeling, NeurIPS 2023 (Spotlight) <br> David Mizrahi*, Roman Bachmann*, Oğuzhan Fatih Kar, Teresa Yeo, Mingfei Gao, Afshin Dehghan, Amir Zamir
4M-21: An Any-to-Any Vision Model for Tens of Tasks and Modalities, arXiv 2024 <br> Roman Bachmann*, Oğuzhan Fatih Kar*, David Mizrahi*, Ali Garjani, Mingfei Gao, David Griffiths, Jiaming Hu, Afshin Dehghan, Amir Zamir
4M is a framework for training "any-to-any" foundation models, using tokenization and masking to scale to many diverse modalities. Models trained using 4M can perform a wide range of vision tasks, transfer well to unseen tasks and modalities, and are flexible and steerable multimodal generative models. We are releasing code and models for "4M: Massively Multimodal Masked Modeling" (here denoted 4M-7), as well as "4M-21: An Any-to-Any Vision Model for Tens of Tasks and Modalities" (here denoted 4M-21).
For install instructions, please see https://github.com/apple/ml-4m.
The SAM instance tokenizer can be loaded from Hugging Face Hub as follows:
from fourm.vq.vqvae import VQVAE
tok_sam_instance = VQVAE.from_pretrained('EPFL-VILAB/4M_tokenizers_sam-instance_1k_64')
Please see https://github.com/apple/ml-4m/blob/main/README_TOKENIZATION.md for more detailed instructions and https://github.com/apple/ml-4m for other tokenizer and 4M model checkpoints.
If you find this repository helpful, please consider citing our work:
@inproceedings{4m,
title={{4M}: Massively Multimodal Masked Modeling},
author={David Mizrahi and Roman Bachmann and O{\u{g}}uzhan Fatih Kar and Teresa Yeo and Mingfei Gao and Afshin Dehghan and Amir Zamir},
booktitle={Thirty-seventh Conference on Neural Information Processing Systems},
year={2023},
}
@article{4m21,
title={{4M-21}: An Any-to-Any Vision Model for Tens of Tasks and Modalities},
author={Roman Bachmann and O{\u{g}}uzhan Fatih Kar and David Mizrahi and Ali Garjani and Mingfei Gao and David Griffiths and Jiaming Hu and Afshin Dehghan and Amir Zamir},
journal={arXiv 2024},
year={2024},
}
The model weights in this repository are released under the Sample Code license as found in the LICENSE file.