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

Added nomask generator tool #28

Merged
merged 8 commits into from
Mar 1, 2019
Merged

Added nomask generator tool #28

merged 8 commits into from
Mar 1, 2019

Conversation

tejasmhos
Copy link
Collaborator

Added a tool to generate images from Google and create blank mask images for these images.

@tejasmhos tejasmhos changed the base branch from data_synthesizer to master February 27, 2019 21:31
@@ -0,0 +1,6 @@
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not check in checkpoint files? .ipynb_checkpoints should be in .gitignore, please add it if it doesn't already exist.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, good point. They're removed.

"metadata": {},
"outputs": [],
"source": [
"def create_image_dataset(search_term, number_of_images, augmentation=0):\n",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use boolean variables (True/False) instead of 0/1 for flags?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's actually not a boolean, it's an integer specifying how many augmentations should be generated.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see, my bad, two follow up points

  1. Can we rename the argument to indicate its a count of the number of augmented images generated?
  2. Why do we need to generate the augmented images? I believe it is good practice to generate these on the fly during training/testing (@pshivraj)

Copy link
Collaborator

@pshivraj pshivraj Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its good to add augmentation at one place in order to have a better sense as to what's happening. I would also recommend using scripts which are importable rather notebooks for better readability and version control.

" x = path.rstrip('\\n')\n",
" t = x.split('/')[-1].rstrip('.jpg')\n",
" im = Image.open(x)\n",
" im_size = im.size\n",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really necessary? Why can't we just use im.size?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, I've made some changes, including modularizing the code so it can be imported into notebook, and also removing augmentation.

@tejasmhos tejasmhos merged commit 9e25bce into havanagrawal:master Mar 1, 2019
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

Successfully merging this pull request may close these issues.

5 participants