Skip to content
New issue

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

new dataset with just normal and opacity lungs #87

Open
kmader opened this issue Sep 24, 2018 · 2 comments
Open

new dataset with just normal and opacity lungs #87

kmader opened this issue Sep 24, 2018 · 2 comments

Comments

@kmader
Copy link
Collaborator

kmader commented Sep 24, 2018

  • 50 cases
  • 25 positive
  • 25 negative
  • questions (would this image ... described as: no opacity present, opacities present)
@betatim
Copy link
Contributor

betatim commented Sep 24, 2018

How about "Is there an opacity present in this image?" and "Is there no opacity present in this image?" with a description of what exactly is meant with "opacity"?

@kmader
Copy link
Collaborator Author

kmader commented Sep 24, 2018

I'll add a field to the dataset in the task.json containing the question to use for each category (otherwise it will just use the default one). As I guess a lot of datasets will have 'normal' for a category this seems like it should be useful.

import json
annotation_task = {
    'google_forms': {'form_url': 'https://docs.google.com/forms/d/e/1FAIpQLSemGag9uitnPnV6OBHDNgrvr2nh-jArJZhVco0Kfjkx4eRkYA/viewform', 
    'sheet_url': 'https://docs.google.com/spreadsheets/d/1JUCLX_17JIGit0Nk4wphgTHlmji9u9PYPmyf_9Wscvg/edit?usp=sharing'
            },
    'dataset': {
        'image_path': 'Image Index', # column name
        'output_labels': 'class', # column name
        'dataframe': dataset_df.drop('age_group', 1).to_dict(),
        'base_image_directory': 'sample_data', # path
        'questions': {'Normal': 'Is there no opacity present in this image?', 
                      'Lung Opacity': 'Is there an opacity present in this image?'} 
    }
}

with open('task.json', 'w') as f:
    json.dump(annotation_task, f, indent=4, sort_keys=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants