1 Star 4 Fork 0

假装有个用户名/deepINC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

deepINC 增量学习工具包

Documentation Status

增量学习工具库,实现了常用数据集,典型模型,工具函数。支撑综述《基于深度神经网络的增量学习技术研究现状综述》的实验。

开始使用

准备使用增量学习工具库? 按如下步骤本地使用 deepINC .

  1. 使用 pip 安装 deepINC:

    $ pip install deepinc
    
  2. 在 .py 程序中引用:

    $ import deepinc as di
    $ from deepinc.utils.args import get_args
    $ from deepinc.utils.training import train_il
    
  3. 初始化配置项:

    $ args = get_args()
    $
    $ args.model = 'lwf'              # 模型名称
    $ args.dataset = 'seq-mnist'      # 数据集
    $ args.print_freq = 1             # 报告loss的频率
    $ args.n_epochs = 1               # 迭代次数
    $ args.device = 'cpu'             # 设备
    $
    $ args.lr = 0.02                  # 学习率
    $ args.batch_size = 64            # batch size
    $ args.alpha = 5                  # 蒸馏损失权重
    $ args.softmax_temp = 2.0         # 蒸馏损失温度系数
    $ args.wd_reg = 5e-5              # 正则项权重
    

    这里可以随心更改

  4. 增量训练:

    $ train_il(args)
    
  5. 等待训练结束~

关联代码

https://github.com/aimagelab/mammoth.

MIT License Copyright (c) 2022, Wenju Sun Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

增量学习工具库 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/swj123/deep-inc.git
git@gitee.com:swj123/deep-inc.git
swj123
deep-inc
deepINC
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385