網上的一些資源python
https://pan.baidu.com/share/init?shareid=2577552196&uk=1677924157這個應該是完整版的,僅供參考9gtf。
linux
本人申請了數據集,可是隻有aflw-images-0.tar.gz,aflw-images-2.tar.gz,aflw-images-3.tar.gz,工具是用的第一個連接sql
還有一個閆大腦門同窗的連接,更詳細app
https://pan.baidu.com/share/link?shareid=2792069998&uk=1897923954#list/path=%2F
工具
沒有祕密ui
將壓縮包放到linux上的同一個文件夾中,解壓縮便可spa
安裝code
sqlitemansqlite
sudo apt-get install sqliteman
blog
數據處理的腳本爲
#-*-coding:utf-8-*- fid_a = open('a.txt') fid_b = open('b.txt') fid_c = open('c.txt','w') lines_a = fid_a.readlines() lines_b = fid_b.readlines() lines_c = [] num = [] #去重 lines_a_no_repeat=[]#沒重複的 for line_a in lines_a: if line_a not in lines_a_no_repeat: lines_a_no_repeat.append(line_a) num.append(lines_a.count(line_a)) #取編號 ii=0 for tmp in lines_a_no_repeat: j = 0 for i in range(0,len(lines_a)): if tmp==lines_a[i]: if j == 0: fid_c.writelines(lines_a[i].strip('\n\r')+' '+str(num[ii])+'\n') j = j + 1 fid_c.writelines(lines_b[i]) ii = ii + 1
fid_a = open('a.txt') fid_b = open('b.txt') fid_c = open('cc.txt','w') lines_a = fid_a.readlines() lines_b = fid_b.readlines() lines_c = [] for i in range(0,len(lines_b)): lines_a[i]= lines_a[i].strip('\n\r') lines_c.append(lines_a[i]+' '+lines_b[i]) fid_c.writelines(lines_c[i])