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

Change Labeling colors #221

Merged
merged 8 commits into from
Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ The bounding-box labeling allows us to store the areas where the incompatibiliti

<img src="https://user-images.githubusercontent.com/18056781/39081659-fdd4655e-4562-11e8-86f9-a5fab28634bf.JPG" />

<img src="https://user-images.githubusercontent.com/18056781/39081665-10eda006-4563-11e8-9455-986b5a23934e.jpg" />
<img src="https://user-images.githubusercontent.com/18056781/41806002-99faae6c-76d1-11e8-9442-aa2c4f5025b5.png" />

- Press 'y' to mark the images as compatible;
- Press 'Enter' to select the regions;
- Click the 'T' button in the top left corner of a boundary box to toggle between classes. Green corresponds to 'n', yellow corresponds to 'd';
- Press 'Enter' to save changes.
- Click the 'T' button in the top left corner of a boundary box to toggle between classes. Purple corresponds to 'n', yellow corresponds to 'd';
- Press 'Enter' to save changes.

### Training

Expand Down Expand Up @@ -86,9 +86,9 @@ For the unsupervised training, we are using a related problem for which we alrea

```
-network To select which network architecture to use

Copy link
Owner

Choose a reason for hiding this comment

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

These whitespace changes are unrelated, could you remove them from the patch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have no idea why this keeps happening. I didn't touch this part of the file at all. i tried to revise this but this still keep popping up

Copy link
Owner

Choose a reason for hiding this comment

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

It's probably your text editor doing this automatically. It's OK, let's ignore it.

-optimizer To select the optimizer to use

-classification_type Either Y vs N + D or Y + N vs D

--early_stoppping (Optional) To stop training when validation accuracy has stopped improving
Expand Down
4 changes: 2 additions & 2 deletions label.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
box_to_change = {}
all_boxes = {}
key_map = {'Escape': 27, 'r': 114, 'Enter': 13, 'Space': 32, 'y': 121, 'left_a': 97, 'right_d': 100}
COLOR_N = (0, 255, 0) # GREEN
COLOR_N = (128, 0, 128) # PURPLE
Copy link
Owner

Choose a reason for hiding this comment

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

You need to update the help text at the bottom of the file too.

COLOR_D = (0, 255, 255) # YELLOW
COLOR_PLUS = (255, 0, 0) # BLUE
COLOR_TOGGLE_ND = (0, 0, 255) # RED
Expand Down Expand Up @@ -350,7 +350,7 @@ def show_help():
print('1. Press *y* to mark the images as compatible')
print('2. Press *Enter* to select regions')
print('3. Click the T button in the top left corner of a bounding box to toggle between classes')
print('4. *Green* corresponds to (not compatible) *n*')
print('4. *Purple* corresponds to (not compatible) *n*')
print('5. *Yellow* corresponds to (compatible but different) *d*')
print('6. Press *Enter* again to save changes')
print('7. Press *Space* to skip the images')
Expand Down