自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 ext4.vhdx转移到别的盘,实践记录,傻瓜操作很简单!

ext4.vhdx转移到别的盘,实践记录,傻瓜操作很简单!

2024-01-15 16:34:50 2188

原创 解决E: The repository ‘http://packages.ros.org/ros/ubuntu jammy Release‘ does not have a Release file.

解决E: The repository ‘http://packages.ros.org/ros/ubuntu jammy Release‘ does not have a Release file.

2023-11-22 21:51:41 4038

原创 Linux上github提示Permission denied (publickey),如何才能解决?

Linux上github提示Permission denied (publickey),傻瓜式解决

2023-11-21 21:45:54 342

原创 linux同一目录下两个文件夹中的.py文件如何相互import

且红色区域文件 跟 蓝色区域文件 同属于黄色文件夹下子文件。然后就可以正常在红色py文件中调用蓝色py中的函数。红色py 需要调用蓝色py中的函数,我们只需将黄色文件夹设为根目录即可。

2023-07-16 21:31:01 267

原创 pip install torch及对应torchvision、torchaudio

在终端Terminal 中输入以上结果后,就自动帮你安装了。

2023-07-12 20:49:00 3141

原创 ModuleNotFoundError: No module named ‘cv2‘

【代码】ModuleNotFoundError: No module named ‘cv2‘

2023-07-12 19:22:24 122

原创 SLIC分割后各区域上色

【代码】SLIC分割后各区域上色。

2023-07-11 21:35:41 81

原创 pycharm安装和anaconda虚拟环境使用

随笔小记@[pycharm安装和anaconda虚拟环境使用]https://blog.csdn.net/knight31318/article/details/115409712https://huaweicloud.csdn.net/637f7cfedacf622b8df861f1.html?spm=1001.2101.3001.6650.5&utm_medium=distribute.pc_relevant.none-task-blog-2defaultCTRLISTactivity-5-123229

2023-07-03 20:54:38 31

原创 音频可视化,生成波形图

import librosa as lrimport matplotlib.pyplot as pltimport librosa.displayimport osaudio_path = 'D:\Data_set\FACE_VOICE_1\VOICE_1\Aamir_Khan/00006.wav'print(os.path.exists(audio_path))x, sr = lr.load(audio_path) #sr-sample rate采样率 print(type(x),type(

2021-12-07 11:16:33 3658 1

原创 one of the variables needed for gradient computation has been modified by an inplace operation:

one of the variables needed for gradient computation has been modified by an inplace operation:在神经网络回传中出现这个错误,意思为:计算梯度所需的某变量已被一就地操作修改。什么是就地操作呢,举个例子如x += 1就是典型的就地操作,可将其改为y = x + 1。我的网络中调用了relu()class S_score_2(nn.Module): def __init__(self):

2021-09-28 15:16:15 181

原创 pip安装librosa最快方法

pip install librosa -i https://pypi.tuna.tsinghua.edu.cn/simple傻瓜下载即可

2021-02-06 11:58:08 2658 2

原创 No module named apex

ImportError: No module named apex

2021-02-05 17:27:15 408 1

原创 2020-08-06

tf.reshape中的-1作用:# tf.reshape( )import tensorflow as tfimport numpy as npx = np.array([[[[1],[2],[3]],[[4],[5],[6]]], [[[7],[8],[9]],\ [[10],[11],[12]]], [[[13],[14],[15]],[[16],[17],[18]]]])print(x) # shape 大小规模为: 3 * 2 * 3 = 18实例1 :x_reshape

2020-08-06 16:44:09 87

原创 2020-08-06

cv2.imread(filepath).flatten()AttributeError: ‘NoneType’ object has no attribute ‘flatten’在使用cv2.imread( 路径 ) 方法得到多维数组后想转为1维数组会调用 .flatten( )方法但是会报错,AttributeError: ‘NoneType’ object has no attribute ‘flatten’这是由于 imread( 路径 )此路径中含有 中文字符 引用的路径没有中文字符就

2020-08-06 10:58:44 1586

原创 2020-08-05

The Session graph is empty. Add operations to the graph before calling run().问题与Could not load dynamic library ‘cudart64_101.dll’; dlerror: cudart64_101.dll not found问题解决方法直接上代码:import os # 导入顺序不要乱了!!!os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import t

2020-08-05 15:39:18 92

原创 python文件路径是否正确检测,并打印文件夹下所有文件名

在python中导入文件路径时,小白我经常不确定路径是否正确,可以通过以下方法确认:import osfilePath = 'E:\\pythonDataSet' # 路径复制过来后是'E:\pythonDataSet' 记得要将里面的所有 \ 改成 \\print(os.path.exists(filePath)) # 调用 os.path.exists() 查看是否路径正确,正确返回True 错返回False# 此时执行程序 打印出来是 True, 则我们的路径选择是正确的# -----

2020-06-28 12:01:26 1052

原创 java固定好的用户以及 密码登陆

public class Test1 {//模拟用户登录 需求:模拟登陆给三次机会 并提示还有几次机会 //用户名是admin 密码为admin//分析1 : 要键盘录入 ,Scanner 2: 给3次机会需要循环 for 3: 提示有几次 要判断 if public static void main(String[] args) { Scanner sc = new S...

2018-12-06 17:14:21 530

原创 String类的5个基本面试题

第一题String s1 = “abc”;String s2 = “abc”;System.out.println(s1 == s2); // 答案为 trueSystrm.out.println(s1.equals(S2));// true第二题String s1 = new String(“abc”);内存中创建了几个对象?答: 2个 一个在常量池中 一个在堆内存中第三题...

2018-12-06 16:15:50 217

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除