fix: change 'swap' to 'found'

This commit is contained in:
Ting-Jun Wang 2023-11-06 18:30:31 +08:00
parent a5db597de5
commit 4936098b5e
Signed by: snsd0805
GPG Key ID: 48D331A3D6160354

View File

@ -19,13 +19,13 @@ for file in ['train', 'val_unseen', 'val_seen', 'train_seen', 'test', 'val_train
'path': i['path'],
'heading': float(i['heading']),
'instructions': [ i['instruction'] ],
'swap': [ True if i['found'] else False ],
'found': [ i['found'] ],
'id': i['id'],
'objId': i['objId']
}
else:
result[instruction_id]['instructions'].append(i['instruction'])
result[instruction_id]['swap'].append( True if i['found'] else False)
result[instruction_id]['found'].append( i['found'] )
output = []
for k, item in result.items():