timm documentation
iFormer
iFormer
Kategori: Efisien/Mobile · Kode: timm/models/iformer.py · Arsitektur: 9 · Bobot terlatih: 8 (0 dengan hasil ImageNet-1k)
iFormer mengintegrasikan jaringan konvolusional cepat dengan modulasi perhatian kepala tunggal (SHMA) pada tahap akhir, untuk aplikasi mobile.
Makalah
Penggunaan
Lihat Quickstart untuk memuat bobot terlatih, prapemrosesan gambar, dan penyesuaian halus, serta Ekstraksi Fitur untuk menggunakan model sebagai tulang punggung.
>>> import timm
>>> model = timm.create_model('iformer_h.in1k', pretrained=True)
>>> data_config = timm.data.resolve_model_data_config(model)Dukungan API Model
✓ didukung, ✓ (persegi) hanya berfungsi untuk ukuran persegi, ✗ tidak didukung, – tidak diperlukan (model sudah menerima ukuran input apa pun). Diperiksa dengan menjalankan setiap fitur pada model yang diinisialisasi secara acak (IFormer dengan iformer_t pada 224), arsitektur lain dari kelas yang sama diharapkan berperilaku sama. Lihat halaman Model API untuk detailnya.
Arsitektur
| Arsitektur | Parameter (M) | GMACs | Ukuran input | Bobot terlatih |
|---|---|---|---|---|
iformer_h | 99.60 | - | 224 | 1 |
iformer_l | 14.78 | - | 224 | 1 |
iformer_l2 | 24.52 | - | 224 | 0 |
iformer_l2_distilled | 25.03 | - | 224 | 1 |
iformer_l_distilled | 15.17 | - | 224 | 1 |
iformer_m | 8.91 | - | 224 | 1 |
iformer_m_distilled | 9.29 | - | 224 | 1 |
iformer_s | 6.56 | - | 224 | 1 |
iformer_t | 2.89 | - | 224 | 1 |
GMACs dan jumlah parameter adalah untuk ukuran input dan klasifer default dari setiap arsitektur, dari hasil benchmark.
Bobot terlatih
Top-1 adalah akurasi validasi ImageNet-1k dari results-imagenet.csv pada ukuran eval yang tercantum, - jika bobot tidak memiliki hasil ImageNet-1k (misalnya bobot pretraining atau image-text). Classes adalah ukuran dari classifier pretrained, none untuk bobot yang tidak memilikinya.
| Bobot | Ukuran input | Top-1 (%) | Ukuran evaluasi | Kelas | Lisensi | Hub |
|---|---|---|---|---|---|---|
iformer_h.in1k | 224 | - | - | 1000 | mit | timm |
iformer_l.in1k | 224 | - | - | 1000 | mit | timm |
iformer_l2_distilled.in1k | 224 | - | - | 1000 | mit | timm |
iformer_l_distilled.in1k | 224 | - | - | 1000 | mit | timm |
iformer_m.in1k | 224 | - | - | 1000 | mit | timm |
iformer_m_distilled.in1k | 224 | - | - | 1000 | mit | timm |
iformer_s.in1k | 224 | - | - | 1000 | mit | timm |
iformer_t.in1k | 224 | - | - | 1000 | mit | timm |
Sitasi
@inproceedings{zheng2025iformer,
title={iformer: Integrating convnet and transformer for mobile application},
author={Zheng, Chuanyang},
booktitle={International Conference on Learning Representations},
volume={2025},
pages={22947--22961},
year={2025}
}