Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
foamliu committed Oct 12, 2018
1 parent 7f25003 commit 2efb928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
outputs = outputs.cpu().numpy()

for i in range(10):
result[i]['labels'] = outputs[i]
result[i]['labels'] = outputs[i].tolist()

with open('result.json', 'w') as file:
json.dump(result, file, indent=4)

0 comments on commit 2efb928

Please sign in to comment.