{"id":13708847,"url":"https://github.com/Sense-X/TokenMix","last_synced_at":"2025-05-06T15:31:29.667Z","repository":{"id":46139818,"uuid":"512638545","full_name":"Sense-X/TokenMix","owner":"Sense-X","description":"TokenMix: Rethinking Image Mixing for Data Augmentation in Vision Transformers (ECCV 2022)","archived":false,"fork":false,"pushed_at":"2022-09-08T06:56:48.000Z","size":5338,"stargazers_count":89,"open_issues_count":7,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-08-03T23:14:17.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sense-X.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-11T06:17:53.000Z","updated_at":"2024-06-30T06:11:05.000Z","dependencies_parsed_at":"2023-01-18T00:45:33.899Z","dependency_job_id":null,"html_url":"https://github.com/Sense-X/TokenMix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sense-X%2FTokenMix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sense-X%2FTokenMix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sense-X%2FTokenMix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sense-X%2FTokenMix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sense-X","download_url":"https://codeload.github.com/Sense-X/TokenMix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224513125,"owners_count":17323750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:00:33.399Z","updated_at":"2024-11-13T19:30:32.026Z","avatar_url":"https://github.com/Sense-X.png","language":"Python","funding_links":[],"categories":["Table of Contents"],"sub_categories":["**Attention Score**"],"readme":"## Pytorch implementation of [TokenMix (ECCV 2022)](https://arxiv.org/abs/2207.08409)\n\n![tenser](assets/tokenmix.png)\n\nThis repo is the offcial implementation of the paper [TokenMix: Rethinking Image Mixing for Data Augmentation in Vision Transformers](https://arxiv.org/abs/2207.08409)\n\n```\n@article{UniNet,\n  author  = {Jihao Liu, Boxiao Liu, Hang Zhou, Yu Liu, Hongsheng Li},\n  journal = {arXiv:2207.08409},\n  title   = {TokenMix: Rethinking Image Mixing for Data Augmentation in Vision Transformers},\n  year    = {2022},\n}\n```\n\n### Update\n8/9/2022 Update the source code.\n\n### Preparation\n#### Data\nFollowing [TokenLabeling](https://github.com/zihangJiang/TokenLabeling) to prepare ImageNet data and label maps generated with [NFNet-F6](https://arxiv.org/abs/2102.06171).\n#### Environment\nThe code is tested with ```torch==1.11``` and ```timm==0.5.4```.\n\n### Run experiments\n\nCurrently, we supporting running experiments with slurm.\nYou can reproduce the results of Deit-small as follows: \n\n```sh exp/deit_small/run.sh partition```\n\n### Models \n\n|Model|epochs|Top-1 Acc.|Ckpt|\n|-|:-:|:-:|:-:|\n|Deit-tiny|300|73.2|-|\n|Deit-small| 300 | 80.8|-|\n|Deit-base|300|82.9|-|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSense-X%2FTokenMix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSense-X%2FTokenMix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSense-X%2FTokenMix/lists"}