1. SWA(随机权重平均)
简单来说就是将指定epochs范围内训练出来的模型,将这些模型的weight取平均赋值给这个swa_model。
- Pytorch内置的swa,但是引入了一个SWALR。
- 一个项目用到的。
2. attack training(对抗训练)
1 | import torch |
1 | # 初始化 |
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent:
meta: false
pages: false
posts:
title: true
date: true
path: true
text: false
raw: false
content: false
slug: false
updated: false
comments: false
link: false
permalink: false
excerpt: false
categories: false
tags: true