Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.5%) to scientific vocabulary
Keywords
Repository
PyTorch replication of the MobileNetV4 Model
Basic Info
- Host: GitHub
- Owner: junaidaliop
- License: mit
- Language: Python
- Default Branch: master
- Homepage: https://arxiv.org/pdf/2404.10518v1
- Size: 1.52 MB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
MobileNetV4-PyTorch
Overview
This repository provides a PyTorch replication of the MobileNetV4 architecture as described in the paper "MobileNetV4: Universal Models for the Mobile Ecosystem". The implementation aims to mimic the architecture closely for all five variants: - MobileNetV4ConvSmall - MobileNetV4ConvMedium - MobileNetV4ConvLarge - MobileNetV4HybridMedium - MobileNetV4HybridLarge
Repository Structure
- env/: Contains the environment YAML file to set up the necessary dependencies.
- logs/: Contains the architecture details of the different MobileNetV4 variants.
- paper/: Contains the original MobileNetV4 paper for reference.
- MobileNetV4.py: Contains the feature extractor for MobileNetV4 architectures.
- nn_blocks.py: Contains neural network block definitions used in the MobileNetV4 architecture.
- test.py: Contains the classifier and script for testing the implementations.
Installation
To create the environment with the necessary dependencies, use the provided YAML file:
bash
conda env create -f env/MobileNetV4_env.yml
conda activate MobileNetV4-PyTorch
Usage
Training
To train a MobileNetV4 model on your dataset, modify the test.py script with your dataset and training configurations.
Pre-trained Weights
For pre-trained weights on ImageNet, you can use the weights provided by timm.
Example
```python import torch from test import MobileNetV4WithClassifier
Example usage
model = MobileNetV4WithClassifier(modelname='MobileNetV4ConvSmall', numclasses=1000) inputtensor = torch.randn(1, 3, 224, 224) output = model(inputtensor) print(output) ```
Citations
If you find this work useful, please cite the original MobileNetV4 paper:
bibtex
@article{MobileNetV4,
title={MobileNetV4: Universal Models for the Mobile Ecosystem},
author={Author Names},
journal={arXiv preprint arXiv:2404.10518v1},
year={2024}
}
If you use this work, please cite it as follows:
bibtex
@misc{MobileNetV4-PyTorch,
author = {Muhammad Junaid Ali Asif Raja},
title = {MobileNetV4-PyTorch},
year = {2024},
url = {https://github.com/junaidaliop/MobileNetV4},
note = {Version 1.0.0}
}
Contact
For research collaborations or any queries, please email me at muhammadjunaidaliasifraja@gmail.com
Contributions
Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.
TODO
- [ ] Train the model on ImageNet to attain weights
- [ ] Train the model on CIFAR-100
- [ ] Train the model on CIFAR-10
Star the Repository
If you find this repository useful, please consider giving it a star!
Acknowledgment
This is an unofficial implementation of MobileNetV4 in PyTorch. To the best of my ability, I believe this is the closest implementation to the original work found at TensorFlow MobileNetV4 Implementation.
For the official TensorFlow implementation, please visit: TensorFlow MobileNetV4 Implementation.
Owner
- Name: Junaid Ali
- Login: junaidaliop
- Kind: user
- Repositories: 1
- Profile: https://github.com/junaidaliop
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this work, please cite it as follows."
authors:
- family-names: Raja
given-names: Muhammad Junaid Ali Asif
orcid: "https://orcid.org/0009-0008-9249-9983"
title: "MobileNetV4-PyTorch"
abstract: "A PyTorch implementation of MobileNetV4: Universal Models for the Mobile Ecosystem."
version: 1.0.0
date-released: 2024-07-23
url: "https://github.com/junaidaliop/MobileNetV4"
keywords:
- MobileNetV4
- PyTorch
- deep learning
- computer vision
GitHub Events
Total
- Issues event: 1
Last Year
- Issues event: 1