分类的类别文件,如cell_class.py所示,Lym的索引为0;Nev的索引为1;other的索引为2;
【1】cell_class.py
自定义类别文件
class_names = '''Lym
Nev
Other
'''.split("\n")
'''
直接写入,换行就行
'''
[2] caffe_classes.py
原始类别文件
class_names = '''tench, Tinca tinca
goldfish, Carassius auratus
great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias
tiger shark, Galeocerdo cuvieri
hammerhead, hammerhead shark
#省略若干
earthstar
hen-of-the-woods, hen of the woods, Polyporus frondosus, Grifola frondosa
bolete
ear, spike, capitulum
toilet tissue, toilet paper, bathroom tissue'''.split("\n")