参考:深度学习可视化工具wandb_y4ung的博客-CSDN博客_wandb本地
全称是Weights & Biases。
安装:
pip install wandb
wandb login
网站:
Weights & Biases
示例:
import wandb
wandb.init(project="my-test-project", entity="your name")
wandb.config = {
"learning_rate": 0.001,
"epochs": 100,
"batch_size": 128
}
wandb.log({"loss": loss})
# Optional
wandb.watch(model)
这个代码loss报错(not defined)
2、hydra-core参考:Hydra_d指神通的博客-CSDN博客_hydra.main
安装:
pip install hydra-core
出现警告
×掉,重新开一个,安装。
参考:解决Connection to pypi.org timed out问题_辛勤汗水@的博客-CSDN博客
pip install hydra-core -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
成功!
3、pytorch_transformers安装:
pip install pytorch_transformers -i https://pypi.douban.com/simple
参考:
pytorch_transformers安装_Mary_258的博客-CSDN博客_transformers安装
成功!
安装错了,要安装transformers
pip install transformer
报出警告,于是
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple transformers
成功!
完结撒花!*★,°*:.☆( ̄▽ ̄)/$:*.°★* 。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)