上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: 博客搬移到:https://blog.csdn.net/u013171226/article/details/107680284 阅读全文
posted @ 2020-03-26 09:34 cumtchw 阅读(3639) 评论(0) 推荐(0) 编辑
摘要: 1.在Github上下载一个项目的所有文件夹,这个就直接点击“clone or download”复制链接,然后直接在终端git clone 链接 就好了, 2.下载指定的文件或文件夹 有时候我们只需要下载github上项目的某一个文件夹或文件,不需要下载整个项目,这时候的操作方法如下, 比如你想下 阅读全文
posted @ 2020-03-12 13:31 cumtchw 阅读(2700) 评论(0) 推荐(0) 编辑
摘要: 利用Python将某个文件夹里面的jpg图片移动到另一个文件夹里面,下面的脚本是把/data/temp1里面的图片移动到/data/temp2文件夹中。 该博客搬移到 https://blog.csdn.net/u013171226/article/details/107680283 阅读全文
posted @ 2020-03-11 13:10 cumtchw 阅读(24588) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- import os """ os.path.join 连接两个或更多的路径名组件 1.如果各组件首字母不包含'/',则函数会自动加上 2.如果有一个组件是绝对路径,则在它之前的所有组件均会被舍弃 3.如果最后一个组件为空,则生成的路径以一个'/'分隔符结尾,这 阅读全文
posted @ 2020-03-11 09:35 cumtchw 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 博客搬移到:https://blog.csdn.net/u013171226/article/details/107680271 阅读全文
posted @ 2020-03-10 15:39 cumtchw 阅读(1822) 评论(0) 推荐(0) 编辑
摘要: 做caffe的训练数据的时候,有时候需要对图片进行批量重命名,脚本如下, import os def rename_jpg(main_path, i): jpg_list = os.listdir(main_path) for jpg in jpg_list: if jpg.endswith(".j 阅读全文
posted @ 2020-03-10 15:14 cumtchw 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 原博客搬移到:https://blog.csdn.net/u013171226/article/details/107680279 做深度学习训练的时候,需要从mp4视频文件中抽帧得到图片数据,其中mp4文件是保存在一个大文件夹下的不同子文件夹下面的,用下面的python脚本实现 import cv 阅读全文
posted @ 2020-03-08 16:25 cumtchw 阅读(819) 评论(0) 推荐(0) 编辑
摘要: """os.listdir(path) 只能返回当前path路径下的文件和文件夹,不包含子目录中的内容,并且不包含路径,只是文件或文件夹名字.os.walk(path)用来遍历一个目录内各个子目录和子文件每次遍历的对象返回的都是一个三元组(root, dirs, files)root:指的是当前正在 阅读全文
posted @ 2020-03-07 20:56 cumtchw 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 原博客搬移到:https://blog.csdn.net/u013171226/article/details/107680277 在Ubuntu上面搭建caffe环境,搭建完成之后运行sudo make runtest -j8失败,提示错误为:.build_release/tools/caffe: 阅读全文
posted @ 2020-03-03 12:08 cumtchw 阅读(878) 评论(0) 推荐(0) 编辑
摘要: 博客搬移到:https://blog.csdn.net/u013171226/article/details/107680276 阅读全文
posted @ 2020-03-03 10:43 cumtchw 阅读(2636) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页