FireKitCV is a deep learning Framework written in Python and used for Computer Vision tasks, include Image Classification, Object Detection, Seagmentation, etc. Running on Pytorch.
首先git clone本项目
- 下载fashion mnist数据集的四个压缩包放到./data目录下,运行
python scripts/make_fashionmnist.py自动提取图片并划分类别、验证集 - 执行python train.py 训练
- 执行python evaluate.py 测试(在config设置训练好的模型路径)
- 迁移学习,下载对应模型的预训练模型,把路径填入config.py中
- 调整不同的模型、尺寸、优化器等等
- Resnet,Efficientnet, Swin Transformer, ConvNeXt等所有TIMM库所有模型
- Adam
- SGD
- AdamW
- AdamMuon
- ReduceLROnPlateau
- StepLR
- MultiStepLR
- SGDR
- 交叉熵
- Focalloss
- Metric(acc, F1)
- 训练日志保存
- 交叉验证
- 梯度裁剪
- earlystop
- weightdecay
- 冻结
- labelsmooth