摘要: 保存和加载模型 当保存和加载模型时,需要熟悉三个核心功能: torch.save:将序列化对象保存到磁盘。此函数使用Python的pickle模块进行序列化。使用此函数可以保存如模型、tensor、字典等各种对象。 torch.load:使用pickle的unpickling功能将pickle对象文 阅读全文
posted @ 2021-09-13 21:06 梁君牧 阅读(158) 评论(0) 推荐(0) 编辑
摘要: gans-awesome-applications Curated list of awesome GAN applications and demonstrations. Note: General GAN papers targeting simple image generation such 阅读全文
posted @ 2021-09-13 18:12 梁君牧 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Mnist字符识别-神经网络实现(TF框架) 该段代码即贴即用,先贴一下代码,有空的时候写个注释解析。大三的代码了,特别适合新手入门,现在都用Pytorch了。 电脑用的tensorflow版本是1.13.1的,用CPU跑也挺快的。之前用GPU跑了半小时准确率能达到98%左右。 代码 # -*- c 阅读全文
posted @ 2021-09-13 15:11 梁君牧 阅读(91) 评论(0) 推荐(0) 编辑