摘要:#!/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...
阅读全文
摘要:import time print "begin at: " + time.asctime(time.localtime())
阅读全文
摘要: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
阅读全文
摘要:# https://majing.io/questions/772
阅读全文
摘要:http://blog.csdn.net/liuchunming033/article/details/39400931
阅读全文
摘要:# http://blog.csdn.net/liuchunming033/article/details/39400931 创建多层新目录: ### 创建多层目录 def mkdirs(path): # 去除首位空格 path=path.strip() # 去除尾部 \ 符号 path=path.
阅读全文
摘要: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" ...
阅读全文
摘要:# 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
阅读全文
摘要:# cat aaa-ls.sh yourfilenames=`ls ./*.jpg` for eachfile in $yourfilenames do echo $eachfile done
阅读全文
摘要:>>> import os >>> for i in range(1,23): ... os.remove(str(i)+'.jpg') ... ...
阅读全文
摘要:#==== #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='./' ...
阅读全文
摘要:from https://gist.github.com/keithweaver/562d3caa8650eefe7f84fa074e9ca949
阅读全文
摘要: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
阅读全文
摘要:https://gstreamer.freedesktop.org/documentation/plugins.html
阅读全文
摘要:内容都为转载. From https://blog.argcv.com/articles/1036.c From http://blog.csdn.net/Relocy/article/details/51453950 Case: 假如某个班级有男生80人,女生20人,共计100人.目标是找出所有女
阅读全文
摘要:白话深度学习与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
阅读全文
摘要:由于sys.path是全局搜索路列表list,list具有insert方法,原型是insert(i, x) i表示位置 x表示数据 意思是把数据x插入到位置i中
阅读全文
摘要:http://blog.csdn.net/qq_27923041/article/category/6668316
阅读全文
摘要:http://blog.51cto.com/xpleaf/1736956 http://blog.csdn.net/u011760056/article/details/46969883 1. Notes. os.path.dirname(__file__)返回脚本的路径,但是需要注意一下几点: 1
阅读全文
摘要:http://python.usyiyi.cn/translate/python_278/library/os.path.html http://python.usyiyi.cn/translate/python_278/library/index.html
阅读全文
摘要:>>> 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:...
阅读全文
摘要: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.
阅读全文
摘要:https://www.leiphone.com/news/201702/T5e31Y2ZpeG1ZtaN.html 1. Caffe 的核心概念是 Layer,每一个神经网络的模块都是一个 Layer 2. Layer 接收输入数据,同时经过内部计算产生输出数据 3. 设计网络结构时,只需要把各个
阅读全文
摘要:Refer to https://www.jiqizhixin.com/articles/2017-01-02-7 https://www.leiphone.com/news/201702/T5e31Y2ZpeG1ZtaN.html 1. TensorFlow 是一个使用数据流图(data flow
阅读全文
摘要: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
阅读全文