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

remove unused code #1227

Merged
merged 4 commits into from
Feb 3, 2019
Merged

remove unused code #1227

merged 4 commits into from
Feb 3, 2019

Conversation

yanfengliu
Copy link
Contributor

@yanfengliu yanfengliu commented Jan 14, 2019

This PR removes the following unused code:

in mrcnn/model.py:
(line 529) crowd_masks = tf.gather(gt_masks, crowd_ix, axis=2)

in mrcnn/visualize.py:
(line 143 & 439) x = random.randint(x1, (x1 + x2) // 2)

This PR modifies the following redundant code:

in mrcnn/model.py:
(line 2264) self.epoch = int(m.group(6)) - 1 + 1 changes to self.epoch = int(m.group(6))

@waleedka
Copy link
Collaborator

The PR looks good. Thanks! The only issue is the comment I left above. I can see how it could be confusing, but I also think it could be more confusing without the explicit -1 + 1.

@yanfengliu
Copy link
Contributor Author

@waleedka Thank you for the feedback! I have reverted the removal of -1+1.

@waleedka waleedka merged commit fb76624 into matterport:master Feb 3, 2019
@waleedka
Copy link
Collaborator

waleedka commented Feb 3, 2019

Thank you!

luccauchon added a commit to luccauchon/Mask_RCNN that referenced this pull request Feb 4, 2019
* Fix visualize activations (matterport#1211)

Fix visualize activations (Squashed 4 commits by @keineahnung2345)

# Get activations of a few sample layers
activations = model.run_graph([image], [
    ("input_image",        model.keras_model.get_layer("input_image").output)
])
leads to the error:
InvalidArgumentError: input_image:0 is both fed and fetched.

Revise the code according to https://stackoverflow.com/questions/39307108/placeholder-20-is-both-fed-and-fetched

* Fix typo in config.py

* Fix typo in rpn_class_loss_graph

Fix matterport#870

* Reversed order (1) and (2) in installation

Reference to matterport#1255

* remove unused code (matterport#1227)

Remove unused code
@luccauchon luccauchon mentioned this pull request Feb 4, 2019
aneeshchauhan pushed a commit to aneeshchauhan/Mask_RCNN that referenced this pull request Jul 9, 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.

2 participants