-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve install and results generation process
- Loading branch information
Showing
11 changed files
with
41 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ A pre-print is available at [https://arxiv.org/abs/2209.04266](https://arxiv.org | |
|
||
## Installation | ||
|
||
This code was written for Ubuntu 20.04.5, using Python 3.8.10. | ||
This code was last tested with Ubuntu 20.04.1, using Python 3.10.3 | ||
|
||
### Local install | ||
|
||
|
@@ -26,29 +26,34 @@ git clone --recursive [email protected]:utiasASRL/safe_and_smooth | |
All requirements can be installed by running | ||
``` | ||
conda env create -f environment.yml | ||
conda activate safeandsmooth | ||
``` | ||
|
||
To check that the installation was successful, run | ||
``` | ||
conda activate safeandsmooth | ||
pytest . | ||
``` | ||
You can also check that you can generate some toy example results by running | ||
``` | ||
_scripts/generate_test_results.sh | ||
``` | ||
and then checking the output created in `_plots_test`. | ||
|
||
Please report any installation issues. | ||
|
||
## Generate results | ||
|
||
There are three types of results reported in the paper: | ||
|
||
- Noise study: Run `simulate_noise.py` to generate the simulation study (Figures 4 and 7 (appendix)). | ||
- Timing study: Run `simulate_time.py` to generate the runtime comparison (Figure 5) | ||
- Real data: Run `evaluate_data.py` to evaluate the real dataset (Figures 1, 5 and 6). | ||
- Noise study: Run `_scripts/simulate_noise.py` to generate the simulation study (Figures 4 and 7 (appendix)). | ||
- Timing study: Run `_scripts/simulate_time.py` to generate the runtime comparison (Figure 5) | ||
- Real data: Run `_scripts/evaluate_real.py` to evaluate the real dataset (Figures 1, 5 and 6). | ||
|
||
You can generate all results by running | ||
``` | ||
_scripts/generate_all_results.sh | ||
``` | ||
After generating, all data can be evaluated, and new figures created, using the jupyter notebook `SafeAndSmooth.ipynb`. For more evaluations of the real dataset, refer to the notebook `DatasetEvaluation.ipynb`. | ||
After generating, all data can be evaluated, and new figures created, by running `python _scripts/plot_results.py`. For more evaluations of the real dataset, refer to the notebook `_notebooks/DatasetEvaluation.ipynb` (you may need to run `pip install -r requirements.txt` for additional plotting libraries). | ||
|
||
## Code references | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
#!/bin/bash | ||
|
||
# run with fewer instances to make sure everything is working properly. | ||
#python3 _scripts/simulate_time.py --test --resultdir="_results" | ||
#python3 _scripts/simulate_noise.py --test --resultdir="_results" | ||
#python3 _scripts/evaluate_real.py --test --resultdir="_results" | ||
python3 _scripts/plot_results.py --resultdir="_results_server" --plotdir="_plots_test/" | ||
|
||
# generate final results | ||
#python3 _scripts/simulate_time.py --resultdir="_results_final/" | ||
#python3 _scripts/simulate_noise.py --resultdir="_results_final/" | ||
#python3 _scripts/evaluate_real.py --resultdir="_results_final/" | ||
#python3 _scripts/plot_results.py --resultdir="_results_final/" --plotdir="_plots/" | ||
#python3 _scripts/simulate_time.py --resultdir="_results" | ||
#python3 _scripts/simulate_noise.py --resultdir="_results" | ||
python3 _scripts/evaluate_real.py --resultdir="_results" | ||
python3 _scripts/plot_results.py --resultdir="_results" --plotdir="_plots" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
# run with fewer instances to make sure everything is working properly. | ||
#python3 _scripts/simulate_time.py --test --resultdir="_results_test" | ||
#python3 _scripts/simulate_noise.py --test --resultdir="_results_test" | ||
python3 _scripts/evaluate_real.py --test --resultdir="_results_test" | ||
python3 _scripts/plot_results.py --resultdir="_results_test" --plotdir="_plots_test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
jupyter | ||
seaborn>=0.12.2 | ||
numpy>=1.23.5 | ||
scipy>=1.9.0 | ||
scipy==1.10.0 | ||
matplotlib>=3.8.1 | ||
pandas>=1.4.3 | ||
progressbar2==4.0 | ||
pyyaml>=6.0 | ||
pytest>=7.1.2 | ||
scikit-umfpack>=0.3.3 | ||
scikit-sparse>=0.4.8 | ||
jupyter | ||
plotly>=5.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters