-
Couldn't load subscription status.
- Fork 10
Downloading tags and existing classifications. Also new function to download tagged image data for training. #42
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
Conversation
…ually remove module getting hack and creds
…ng integers only though? Works currently but upload function needs to be checked
| self.y_min = y_min | ||
| self.y_max = y_max | ||
| self.classification_names = classification_names | ||
| self.image_height = image_height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtarng so this doesn't reflect the db table now? It seems like we have overloaded this class to fit multiple needs. What to clients of ImageTag enter for height and width when creating ImageTag objects?
| logging.debug("Existing ImageTag found, appending classification {}", row[6]) | ||
| tag_id_to_ImageTag[tag_id].classification_names.append(row[6].strip()) | ||
| else: | ||
| logging.debug("No existing ImageTag found, creating new ImageTag: " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtarng I would suggest putting this in a method
| for row in cursor: | ||
| logging.debug(row) | ||
| classification_set.add(row[0]) | ||
| logging.debug("Got back {} classifications existing in db.".format(len(classification_set))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtarng missing {0} ?
…ownload tagged image data for training. (CatalystCode#42) * Getting tag queries back. Need to construct into data map, also eventually remove module getting hack and creds * Have working list of imageTags returning now * Download of existing tags working now. Unsure about filenames all being integers only though? Works currently but upload function needs to be checked * Retreving existing tags in db * scrubbing creds * comment cleanup * creating function to download tagged images and their data * print -> logging * feedback
tests for prediction flow
No description provided.