Skip to content

Commit

Permalink
Fix readthedocs build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
faustomorales committed Aug 18, 2022
1 parent f7e4bb2 commit cd0db51
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 10 deletions.
9 changes: 8 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ formats: []

# Installs the package and the docs requirements.
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
system_packages: true

build:
os: ubuntu-22.04
tools:
python: "3.8"
jobs:
pre_install:
- make patch-thirdparty
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
4 changes: 0 additions & 4 deletions docs/detectors/efficientdet.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/detectors/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ There are currently four implemented architectures.

.. toctree::
fasterrcnn
efficientdet
retinanet
4 changes: 4 additions & 0 deletions docs/detectors/retinanet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
EfficientDet
************

.. autoclass:: mira.detectors.RetinaNet
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ torchvision
albumentations
mistune<2
regex
ftfy
ftfy
timm
pretrainedmodels
efficientnet_pytorch
5 changes: 3 additions & 2 deletions mira/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,13 @@ def crop_error_examples(
iou_threshold=0.1,
) -> typing.List[typing.Dict[str, typing.List[Annotation]]]:
"""Get crops of true positives, false negatives, and false positives.
Args:
true_collection: A collection of the ground truth scenes.
pred_collection: A collection of the predicted scenes.
threshold: The score threshold for selecting annotations from predicted
scenes.
threshold: The score threshold for selecting annotations from predicted scenes.
iou_threhsold: The IoU threshold for counting a box as a true positive.
Returns:
A list of dicts with "tps", "fps", and "fns"
with the same length of the input collections. The values in each dict
Expand Down

0 comments on commit cd0db51

Please sign in to comment.