我尝试了以下代码来创建imagerecoder io格式,但是在执行此操作时,出现了被称为处理错误。我不知道这是什么意思请帮助我解决此错误:
walking or attacking ---[trigger run]----> running animation
running or walking -----[trigger attack]---> attack animation
running or attacking ----[trigger walk] ---> walking animation
import tarfile
fname = mx.test_utils.download(url='http://www.vision.caltech.edu/
Image_Datasets/Caltech101/101_ObjectCategories.tar.gz',
dirname='data', overwrite=False)
tar = tarfile.open(fname)
tar.extractall(path=os.path.join('.','data'))
tar.close()
import subprocess
im2rec_path = mx.test_utils.get_im2rec_path()
data_path = os.path.join('data','101_ObjectCategories')
prefix_path = os.path.join('data','caltech')
with open(os.devnull, 'wb') as devnull:
subprocess.check_call(['python', im2rec_path, '--list', '--
recursive', '--test-ratio=0.2', prefix_path, data_path],
stdout=devnull)