Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
laich 876862fd51 | 1 year ago | |
---|---|---|
cifar-10-batches-py | 1 year ago | |
README.md | 1 year ago | |
alexnet_adapter.py | 1 year ago | |
alexnet_torch.py | 1 year ago |
AlexNet was proposed in 2012, one of the most influential neural networks. It got big success in ImageNet Dataset recognition than other models.
Paper: Krizhevsky A, Sutskever I, Hinton G E. ImageNet Classification with Deep ConvolutionalNeural Networks. Advances In Neural Information Processing Systems. 2012.
Dataset used: CIFAR-10
In this case, the source of the model definition or training script corresponding to the implementation of PyTorch is as follows:
https://github.com/pytorch/vision/blob/main/torchvision/models/alexnet.py
This case shows the AlexNet model implemented by pytorch and the version converted based on MSAadpter, you can start training and evaluation as follows:
# PyTorch
# enter script dir, train AlexNet by PyTorch
python alexnet_torch.py [--mode 'train'] [--device 'cpu'|'cuda'] [--epoch] [--save_path]
# example: python alexnet_torch.py --device cpu --save_path ./alexnet.pth
# enter script dir, evaluate AlexNet by PyTorch
python alexnet_torch.py [--mode 'test'] [--device 'cpu'|'cuda'] [--load_path]
# example: python alexnet_torch.py --mode test --load_path ./alexnet.pth
# MSAdapter.pytorch
# enter script dir, train AlexNet by MSAdapter.pytorch
python alexnet_adapter.py [--mode 'train'] [--device 'CPU'|'GPU'|'ASCEND'] [--epoch] [--save_path]
# example: python alexnet_adapter.py --device GPU --save_path ./alexnet.ckpt
# enter script dir, evaluate AlexNet by MSAdapter.pytorch
python alexnet_adapter.py [--mode 'test'] [--device 'CPU'|'GPU'|'ASCEND'] [--load_path]
# example: python alexnet_adapter.py --mode test --load_path ./alexnet.ckpt
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》