01 2018 档案

Shutffle (change dict to item and do shutffle) ; Mark id to each person
摘要:#!/usr/bin/python import time import sys import os from os import walk import random import numpy as np if len(sys.argv) != 2: print( "This script will make img_path --- > person_id wi... 阅读全文

posted @ 2018-01-29 17:02 cdekelon 阅读(110) 评论(0) 推荐(0) 编辑

show the current time
摘要:import time print "begin at: " + time.asctime(time.localtime()) 阅读全文

posted @ 2018-01-25 10:39 cdekelon 阅读(81) 评论(0) 推荐(0) 编辑

(summary) Generate folder-subfolders (sys.argv)
摘要:1. copy_sub_folders.py 2. remove_files_in_subfolder.py 3. combine step1 and step2, copy_subfolder_remove_itsfile.py 4. or generate the sub-folders dir 阅读全文

posted @ 2018-01-24 16:54 cdekelon 阅读(129) 评论(0) 推荐(0) 编辑

Generate folder-subfolders according to olddir
摘要:# https://majing.io/questions/772 阅读全文

posted @ 2018-01-24 16:46 cdekelon 阅读(121) 评论(0) 推荐(0) 编辑

delete the files in subfolders
摘要:http://blog.csdn.net/liuchunming033/article/details/39400931 阅读全文

posted @ 2018-01-24 01:13 cdekelon 阅读(165) 评论(0) 推荐(0) 编辑

shutil.copytree copy all the folders and files
摘要:# http://blog.csdn.net/liuchunming033/article/details/39400931 创建多层新目录: ### 创建多层目录 def mkdirs(path): # 去除首位空格 path=path.strip() # 去除尾部 \ 符号 path=path. 阅读全文

posted @ 2018-01-24 00:13 cdekelon 阅读(385) 评论(0) 推荐(0) 编辑

(shell)Show all the files in folders and subfolders
摘要:for d in ./*; do if [ -d "$d" ]; then for e in $d/*;do if [ -d "$e" ]; then find "$e" -type f -print fi done fi done for d in ./*; do if [ -d "$d" ... 阅读全文

posted @ 2018-01-23 17:12 cdekelon 阅读(185) 评论(0) 推荐(0) 编辑

(shell)show all the folders and sub-folders
摘要:# cat bbb-subfolder.sh for d in ./*; do if [ -d "$d" ]; then echo "$d" for e in $d/*;do if [ -d "$e" ]; then echo "$e" fi done fi done 阅读全文

posted @ 2018-01-23 16:46 cdekelon 阅读(192) 评论(0) 推荐(0) 编辑

(shell)show all the files in one path
摘要:# cat aaa-ls.sh yourfilenames=`ls ./*.jpg` for eachfile in $yourfilenames do echo $eachfile done 阅读全文

posted @ 2018-01-23 16:27 cdekelon 阅读(140) 评论(0) 推荐(0) 编辑

os.remove some jpgs
摘要:>>> import os >>> for i in range(1,23): ... os.remove(str(i)+'.jpg') ... ... 阅读全文

posted @ 2018-01-23 15:11 cdekelon 阅读(95) 评论(0) 推荐(0) 编辑

shutil.rmtree, os.path, delete sub-folders, format
摘要:#==== #This script will check how many files in sub-folders. #Will delete the sub-folders if the files are not enough. #==== import os import shutil from os import walk import os.path #mypath='./' ... 阅读全文

posted @ 2018-01-23 14:19 cdekelon 阅读(141) 评论(0) 推荐(0) 编辑

How to create folder
摘要:from https://gist.github.com/keithweaver/562d3caa8650eefe7f84fa074e9ca949 阅读全文

posted @ 2018-01-22 15:56 cdekelon 阅读(102) 评论(0) 推荐(0) 编辑

valgrind
摘要:Good pdf: https://aleksander.es/data/valgrind-memcheck.pdf FAQ: http://valgrind.org/docs/manual/faq.html#faq.deflost Useful link: http://blog.51cto.co 阅读全文

posted @ 2018-01-17 17:40 cdekelon 阅读(96) 评论(0) 推荐(0) 编辑

gstream
摘要:https://gstreamer.freedesktop.org/documentation/plugins.html 阅读全文

posted @ 2018-01-17 15:39 cdekelon 阅读(206) 评论(0) 推荐(0) 编辑

TP TN FP FN
摘要:内容都为转载. From https://blog.argcv.com/articles/1036.c From http://blog.csdn.net/Relocy/article/details/51453950 Case: 假如某个班级有男生80人,女生20人,共计100人.目标是找出所有女 阅读全文

posted @ 2018-01-16 11:34 cdekelon 阅读(526) 评论(0) 推荐(0) 编辑

tensor flow
摘要:白话深度学习与TensorFlow https://item.jd.com/12228460.html 第1章 机器学习是什么 2 1.1 聚类 4 1.2 回归 5 1.3 分类 8 1.4 综合应用 10 1.5 小结 14 第2章 深度学习是什么 15 2.1 神经网络是什么 15 2.1.1 阅读全文

posted @ 2018-01-09 15:37 cdekelon 阅读(270) 评论(0) 推荐(0) 编辑

About sys.path.insert
摘要:由于sys.path是全局搜索路列表list,list具有insert方法,原型是insert(i, x) i表示位置 x表示数据 意思是把数据x插入到位置i中 阅读全文

posted @ 2018-01-04 17:14 cdekelon 阅读(236) 评论(0) 推荐(0) 编辑

Useful links or blogs
摘要:http://blog.csdn.net/qq_27923041/article/category/6668316 阅读全文

posted @ 2018-01-04 17:03 cdekelon 阅读(98) 评论(0) 推荐(0) 编辑

About os.path
摘要:http://blog.51cto.com/xpleaf/1736956 http://blog.csdn.net/u011760056/article/details/46969883 1. Notes. os.path.dirname(__file__)返回脚本的路径,但是需要注意一下几点: 1 阅读全文

posted @ 2018-01-04 16:45 cdekelon 阅读(137) 评论(0) 推荐(0) 编辑

About all the modules
摘要:http://python.usyiyi.cn/translate/python_278/library/os.path.html http://python.usyiyi.cn/translate/python_278/library/index.html 阅读全文

posted @ 2018-01-04 15:13 cdekelon 阅读(63) 评论(0) 推荐(0) 编辑

About os.environ
摘要:>>> for a in os.environ.keys(): ... print os.environ[a] ... | /usr/bin/lesspipe %s 10.19.142.3 56522 22 nvidia nvidia /home/nvidia /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:... 阅读全文

posted @ 2018-01-04 15:02 cdekelon 阅读(135) 评论(0) 推荐(0) 编辑

About from __future__ import absolute_import
摘要:http://blog.csdn.net/caiqiiqi/article/details/51050800 https://docs.python.org/3/library/__future__.html https://docs.python.org/2.5/whatsnew/pep-328. 阅读全文

posted @ 2018-01-03 17:30 cdekelon 阅读(89) 评论(0) 推荐(0) 编辑

Caffe
摘要:https://www.leiphone.com/news/201702/T5e31Y2ZpeG1ZtaN.html 1. Caffe 的核心概念是 Layer,每一个神经网络的模块都是一个 Layer 2. Layer 接收输入数据,同时经过内部计算产生输出数据 3. 设计网络结构时,只需要把各个 阅读全文

posted @ 2018-01-02 16:57 cdekelon 阅读(329) 评论(0) 推荐(0) 编辑

TensorFlow
摘要:Refer to https://www.jiqizhixin.com/articles/2017-01-02-7 https://www.leiphone.com/news/201702/T5e31Y2ZpeG1ZtaN.html 1. TensorFlow 是一个使用数据流图(data flow 阅读全文

posted @ 2018-01-02 16:37 cdekelon 阅读(107) 评论(0) 推荐(0) 编辑

Keras
摘要:https://www.jiqizhixin.com/articles/2017-01-02-7 http://blog.csdn.net/u012162613/article/details/45397033 https://keras.io/ 1. Keras is a high-level n 阅读全文

posted @ 2018-01-02 11:36 cdekelon 阅读(134) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示