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
Work going on here https://github.com/WHOIGit/photic/tree/importlabeledrois
The text was updated successfully, but these errors were encountered:
Script fragment for parsing the CNN JSON format.
def process_json(path): try: with open(path) as fin: j = json.load(fin) class_labels = j['class_labels'] output_classes = j['output_classes'] output_scores = j['output_scores'] input_images = j['input_images'] for i, image_id in enumerate(input_images): output_class = output_classes[i] output_class_label = class_labels[output_class] image_path = { left as an exercise to the reader } score = output_scores[i][output_class] print(f'{image_id},{image_path},{output_class_label},{score:.3f}') except IOError: print('IO error!')
Sorry, something went wrong.
joefutrelle
No branches or pull requests
Work going on here https://github.com/WHOIGit/photic/tree/importlabeledrois
The text was updated successfully, but these errors were encountered: