摘要: 原文:error: command ‘gcc‘ failed with exit status 1 点击直达 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(73) 评论(0) 推荐(0)
摘要: 我将dataframe写入到csv文件中时 df.to_csv('out.csv') 报了下面的错误 UnicodeEncodeError: 'ascii' codec can't encode character u'\u03b1' in position... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(82) 评论(0) 推荐(0)
摘要: 我在python3中import keras,出现报错信息"ImportError: No module named scipy.sparse".解决方法如下: #卸载原来的scipy sudo pip3 uninstall scipy #通过apt-get安... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(466) 评论(0) 推荐(0)
摘要: 在网上查找了一番,问题主要出在ubuntu的pip3上.准备手动重装pip3.解决方法如下: 一 安装setuptools模块 #先卸载系统的pip3 sudo apt install python3-pip #打开setuptools · PyPI,下载se... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(49) 评论(0) 推荐(0)
摘要: gsettings set org.gnome.desktop.interface document-font-name 'Sans 10'gsettings set org.gnome.desktop.interface font-name 'Ubuntu ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(96) 评论(0) 推荐(0)
摘要: sudo apt-get autocleansudo apt-get cleansudo apt-get autoremove 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(29) 评论(0) 推荐(0)
摘要: 命令如下: install itorch type command as following: sudo pip3 install ipython==5.2.0 sudo pip3 install notebook git clone https://gith... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(30) 评论(0) 推荐(0)
摘要: 1.用命令确定挂载位置 sudo mkdir disksudo mount -t ext4 /dev/sdb /media/upDiff/disk 2.在/etc/fstab中添加挂载 sudo gedit /etc/fstab #打开文件/dev/sd... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(55) 评论(0) 推荐(0)
摘要: $ sudo rm /var/lib/apt/lists/* -vf $ sudo apt-get update 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(18) 评论(0) 推荐(0)
摘要: 安装pyTorch时,按照官网的命令进行安装 pip3 install http://download.pytorch.org/wh... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(332) 评论(0) 推荐(0)
摘要: python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(82) 评论(0) 推荐(0)
摘要: tf.constant需要用numpy array进行初始化,不能用tf自己的函数返回值,也就是tensor进行初始化赋值。 import tensorflow as tf import numpy as np arr=np.array([[1,2,3],[4... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(95) 评论(0) 推荐(0)
摘要: 1.安装最新版tf--tensorflow1.5,gpu版本需要CUDA8和cudnn6,命令如下 GPU版:sudo pip3 install tf-nightly-gpu CPU版:sudo pip3 install tf-nightly 对应pip网... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(52) 评论(0) 推荐(0)
摘要: 1.先卸载之前的版本 sudo pip3 uninstall tensorflow-gpu 2.安装新的tf sudo pip3 install tensorflow-gpu==1.3 3.tensorflow1.3需要CUDA8.0和cudnn6.0,因... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(61) 评论(0) 推荐(0)
摘要: 解决方法: sudo rm /var/lib/apt/lists/* -vfsudo apt-get update 之后执行 sudo apt-get upgrade 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(48) 评论(0) 推荐(0)
摘要: 1.下载tensorflow官方代码 git clone --recurse-submodules https://github.com/tensorflow/tensorflow.git 2.下载Android SDK和Android NDK Androi... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(45) 评论(0) 推荐(0)
摘要: #include #include #include #include char *dirname="/path/";DIR *dirfile;dirfiles=opendir(dirname);struct dirent *dir;while((dir =... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(385) 评论(0) 推荐(0)
摘要: 通过shape得到h,w, resize时先传入w。 h,w,depth=img.shapeimg=cv2.resize(img,(int(w/2),int(h/2)),interpolation=cv2.INTER_AREA) 扫码关注 实用AI客栈 获取最... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(81) 评论(0) 推荐(0)
摘要: 1.can not load "VOCtraffic/JPEGImages/89110.jpg", STB Reason: expected marker Corrupt JPEG file, based on code at (https://hackag... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(25) 评论(0) 推荐(0)
摘要: 1.修改GPU架构代码 --gpu-architecture=compute_52, --gpu-code=compute_52修改为 --gpu-architecture=compute_61, --gpu-code=compute_61 ... 阅读全文
posted @ 2022-11-13 22:37 dlhl 阅读(41) 评论(0) 推荐(0)