logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Ubuntu 20.04 install ffmpeg

本文主要参考blog简述ffmpeg的主要步骤下载FFmpeg的 source code from linkinstall the dependence packagessudo apt-get install yasmsudo apt-get install libsdl1.2-devsudo apt-get install libstdl2-dev如果在安装sdl2.0的时候遇到问题,可以从l

#ubuntu#php
如何从预训练模型的最后一个epoch开始训练神经网络

从预训练模型保存路径找到当前epoch,将其转换为intimport refile_path='a/b/c/d/model-save-epoch999'str_end = [i.end() for i in re.finditer('epoch',file_path)][-1]epoch=file_path[str_end:]print('resume training epoch=',epoch

“NameError: name ‘re’ is not defined”的解决方案

运行程序出现:“NameError: name ‘re’ is not defined”原因:未加载re解决办法:import re

jupyter notebook 中添加 tensorflow-gpu kernel

jupyter notebook 中添加 tensorflow-gpu kernelProblem:在使用notebook时发现里面只有Python kernel,conda env并没有运行。Solution:添加一下tf-gpuSteps:conda activate your_envconda install ipykernelpython -m ipykernel install --us

AttributeError: module ‘tensorflow‘ has no attribute ‘reset_default_graph‘

在TF2.x版本中使用旧版本的TF代码,重置默认计算图失败。新版TF不需要这个操作了,改为系统默认帮你处理计算图重置。使用公开代码时应该注意原著者的编写环境,更新TF后通常会出现一些新版本不再支持的旧版本的代码或者命令。2.改用向后兼容 TensorFlow 1.x.1.直接删掉这一行代码。3. 安装旧版本的TF。

文章图片
#tensorflow#深度学习#人工智能
安装Pytorch的gpu版本时如何设置系统cuda路径

系统cuda版本与pytorch版本关联,不兼容的cuda会导致无法正确安装pytorch-gpu。设置系统cuda路径。在.bashrc里面添加如下路径。

文章图片
#pytorch#人工智能#python
pytorch layer normalization如何使用

层归一化的调用命令:torch.nn.LayerNorm(normalized_shape, eps=1e-05, elementwise_affine=True, device=None, dtype=None)在CV中的应用案例Image ExampleN, C, H, W = 20, 5, 10, 10input = torch.randn(N, C, H, W)# input data#

#pytorch#深度学习#机器学习
    共 23 条
  • 1
  • 2
  • 3
  • 请选择