We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
文件位置:junior_class/chapeter-3-Computer_Vision/notebook/3-2-CV-Image_Classification.ipynb 前面定义数据读取器时,训练集和验证集的读取器是分开定义的
# 训练集读取器 def data_loader(datadir, batch_size=10, mode = 'train'): # 验证机读取器 def valid_data_loader(datadir, csvfile, batch_size=10, mode='valid'):
然而后面查看数据形状的部分代码中,却都调用data_loader而只是传不同的mode参数
data_loader
mode
# 查看数据形状 DATADIR = '/home/aistudio/work/palm/PALM-Training400/PALM-Training400' train_loader = data_loader(DATADIR, batch_size=10, mode='train') data_reader = train_loader() data = next(data_reader) data[0].shape, data[1].shape eval_loader = data_loader(DATADIR, batch_size=10, mode='eval') data_reader = eval_loader() data = next(data_reader) data[0].shape, data[1].shape
The text was updated successfully, but these errors were encountered:
No branches or pull requests
文件位置:junior_class/chapeter-3-Computer_Vision/notebook/3-2-CV-Image_Classification.ipynb
前面定义数据读取器时,训练集和验证集的读取器是分开定义的
然而后面查看数据形状的部分代码中,却都调用
data_loader
而只是传不同的mode
参数The text was updated successfully, but these errors were encountered: