fix: change 'swap' to 'found'
This commit is contained in:
parent
a5db597de5
commit
4936098b5e
@ -19,13 +19,13 @@ for file in ['train', 'val_unseen', 'val_seen', 'train_seen', 'test', 'val_train
|
|||||||
'path': i['path'],
|
'path': i['path'],
|
||||||
'heading': float(i['heading']),
|
'heading': float(i['heading']),
|
||||||
'instructions': [ i['instruction'] ],
|
'instructions': [ i['instruction'] ],
|
||||||
'swap': [ True if i['found'] else False ],
|
'found': [ i['found'] ],
|
||||||
'id': i['id'],
|
'id': i['id'],
|
||||||
'objId': i['objId']
|
'objId': i['objId']
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
result[instruction_id]['instructions'].append(i['instruction'])
|
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 = []
|
output = []
|
||||||
for k, item in result.items():
|
for k, item in result.items():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user