测试文本 jb51.txt
welcome to jb51.net
I love you very much
python代码
# -*- coding: utf-8 -*-
'''
遇到文中的空格就换行
'''
def delblankline(infile, outfile):
infopen = open(infile, 'r',encoding="utf-8")
outfopen = open(outfile, 'w',encoding="utf-8")
db = infop
DeepLearningDatasetSplits
将图像数据集分为训练集和测试集的脚本
加州大学圣地亚哥分校鸟200
设置的层次结构:
将脚本与图像( )和训练/测试文本拆分文件()放在同一目录中
|
|--ucsd_birds_test_train_split.py
|--images (downloaded images)
|--train (will be created by scr ipt itself)
|--test (will be created