Skip to content

Commit

Permalink
Merge pull request #17 from HHousen/deepsource-fix-9408a52c
Browse files Browse the repository at this point in the history
Remove blank lines after docstring
  • Loading branch information
HHousen committed Jul 7, 2021
2 parents afd3842 + 39c1d5e commit fb5421e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion lecture2notes/end_to_end/text_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def get_text_bounding_boxes(
Returns:
list: The coordinates of bounding boxes containing text.
"""

if type(net) is str:
net = load_east(net)

Expand Down
1 change: 0 additions & 1 deletion lecture2notes/end_to_end/transcribe/transcribe_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ def resolve_deepspeech_models(dir_name):
Returns:
tuple: a tuple containing each of the model files (pb, scorer)
"""

pb = glob.glob(dir_name + "/*.pbmm")[0]
logging.debug("Found model: %s", pb)

Expand Down
2 changes: 0 additions & 2 deletions lecture2notes/models/slide_classifier/grad_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ def occlusion_sensitivity(
"Visualizing and Understanding Convolutional Networks"
https://arxiv.org/abs/1311.2901
"""

torch.set_grad_enabled(False)
model.eval()
mean = mean if mean else 0
Expand Down Expand Up @@ -293,7 +292,6 @@ def main(args):
"""
Visualize model responses given multiple images
"""

device = get_device(not args.cpu)

from slide_classifier_pytorch import SlideClassifier
Expand Down
1 change: 0 additions & 1 deletion lecture2notes/models/slide_classifier/lr_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ def plot(self, skip_start=10, skip_end=5, log_lr=True):
scale; otherwise, plotted in a linear scale. Default: True.
"""

if skip_start < 0:
raise ValueError("skip_start cannot be negative")
if skip_end < 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -880,8 +880,6 @@ def plot_confusion_matrix(
Normalization can be applied by setting `normalize=True`
https://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html#sphx-glr-auto-examples-model-selection-plot-confusion-matrix-py.
"""

# Compute confusion matrix
cm = confusion_matrix(y_true, y_pred)
# Only use the labels that appear in the data
# classes = classes[unique_labels(y_true, y_pred)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ def plot_confusion_matrix(
Normalization can be applied by setting `normalize=True`
https://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html#sphx-glr-auto-examples-model-selection-plot-confusion-matrix-py.
"""

# Compute confusion matrix
cm = confusion_matrix(y_true, y_pred)
# Only use the labels that appear in the data
# classes = classes[unique_labels(y_true, y_pred)]
Expand Down

0 comments on commit fb5421e

Please sign in to comment.