Skip to content

Commit

Permalink
Loosen PIP requirements (#136)
Browse files Browse the repository at this point in the history
* Make requirements less strict

* Added clarification on file name, minor corrections
  • Loading branch information
holger-motional authored Apr 30, 2019
1 parent 21771d6 commit 11332fa
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
3 changes: 2 additions & 1 deletion python-sdk/nuscenes/eval/detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ In this document we present the rules, result format, classes, evaluation metric
## Overview
- [Introduction](#introduction)
- [Challenges](#challenges)
- [General rules](#general-rules)
- [Submission rules](#submission-rules)
- [Results format](#results-format)
- [Classes and attributes](#classes-attributes-and-detection-ranges)
- [Evaluation metrics](#evaluation-metrics)
Expand Down Expand Up @@ -37,6 +37,7 @@ We define a standardized detection result format that serves as an input to the
The detection results for a particular evaluation set (train/val/test) are stored in a single JSON file.
For the train and val sets the evaluation can be performed by the user on their local machine.
For the test set the user needs to zip the JSON results file and submit it to the official evaluation server.
The ZIP file and the JSON file must have the exact same name, except for the file extension.
The JSON file includes meta data `meta` on the type of inputs used for this method.
Furthermore it includes a dictionary `results` that maps each sample_token to a list of `sample_result` entries.
Each `sample_token` from the current evaluation set must be included in `results`, although the list of predictions may be empty if no object is detected.
Expand Down
2 changes: 2 additions & 0 deletions python-sdk/nuscenes/eval/detection/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def __init__(self,
os.makedirs(self.plot_dir)

# Load data.
if verbose:
print('Initializing nuScenes evaluation')
self.pred_boxes, self.meta = load_prediction(self.result_path, self.cfg.max_boxes_per_sample, verbose=verbose)
self.gt_boxes = load_gt(self.nusc, self.eval_set, verbose=verbose)

Expand Down
2 changes: 1 addition & 1 deletion python-sdk/nuscenes/nuscenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self,

start_time = time.time()
if verbose:
print("======\nLoading NuScenes tables for version {} ...".format(self.version))
print("======\nLoading NuScenes tables for version {}...".format(self.version))

# Explicitly assign tables to help the IDE determine valid class members.
self.category = self.__load_table__('category')
Expand Down
2 changes: 1 addition & 1 deletion setup/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export PYTHONPATH="${PYTHONPATH}:$HOME/nuscenes-devkit/python-sdk"

To install the required packages, run the following command in your favourite virtual environment:
```
pip install -r setup/requirements.txt
pip install -r nuscenes-devkit/setup/requirements.txt
```

### Verify install
Expand Down
22 changes: 11 additions & 11 deletions setup/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
jupyter==1.0.0
matplotlib==2.2.3
numpy==1.14.5
opencv-python==3.4.2.17
Pillow==5.2.0
pyquaternion==0.9.5
scikit-learn==0.19.2
tqdm==4.25.0
scipy==1.1.0
cachetools==3.1.0
Shapely==1.6.4.post2
jupyter
matplotlib
numpy
opencv-python
Pillow
pyquaternion>=0.9.5
scikit-learn
tqdm
scipy
cachetools
Shapely

0 comments on commit 11332fa

Please sign in to comment.