2019-02-08 22:57:41 +01:00
|
|
|
|
# Masterthesis
|
2019-10-01 17:38:49 +02:00
|
|
|
|
> Allows reproduction of results in my master thesis.
|
2018-11-27 14:45:31 +01:00
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
[![Downloads][pypi-downloads]][pypi-url]
|
|
|
|
|
![License][pypi-license]
|
|
|
|
|
![Python versions][pypi-python-versions]
|
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
The package supports testing and evaluating SSD and Bayesian SSD. The results
|
|
|
|
|
can be visualised.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
```sh
|
2019-02-08 23:40:45 +01:00
|
|
|
|
pip install twomartens.masterthesis
|
2019-10-01 17:03:55 +02:00
|
|
|
|
pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
|
2019-02-08 22:57:41 +01:00
|
|
|
|
```
|
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
The second line is important as Git dependencies cannot be specified in the `setup.py`
|
|
|
|
|
file.
|
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
Please refer to [GPU support][tf-gpu-support] for instructions on
|
|
|
|
|
installing the non-Python dependencies for `tensorflow`.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
Type the following to create the configuration file and to see the options:
|
|
|
|
|
```sh
|
|
|
|
|
tm-masterthesis config list
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Especially the paths have to be set to the correct values.
|
|
|
|
|
|
2019-02-08 22:57:41 +01:00
|
|
|
|
## Usage example
|
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
```sh
|
|
|
|
|
tm-masterthesis --help
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Lists all available commands. As most commands are nested, it is advisable to
|
|
|
|
|
request the help at different nesting levels.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
```sh
|
|
|
|
|
tm-masterthesis config {get,set,list}
|
|
|
|
|
```
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
Allows for the modification and retrieval of the configuration values.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
```sh
|
|
|
|
|
tm-masterthesis test {ssd,bayesian_ssd} iteration train_iteration
|
|
|
|
|
```
|
2019-02-08 23:40:45 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
Tests the selected network, using `iteration` as identifier for the test run
|
|
|
|
|
and `train_iteration` as identifier for the training iteration. If the config
|
|
|
|
|
parameter `ssd_test_pretrained` is `True` then the training iteration is
|
|
|
|
|
not relevant.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
|
|
|
|
```sh
|
2019-10-01 17:03:55 +02:00
|
|
|
|
tm-masterthesis evaluate {ssd,bayesian_ssd} iteration
|
2019-02-08 22:57:41 +01:00
|
|
|
|
```
|
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
Runs the evaluation process using the test results identified by `iteration`,
|
|
|
|
|
evaluation results are saved under `iteration` under the evaluation path.
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
tm-masterthesis visualise_metrics {ssd,bayesian_ssd} iteration
|
|
|
|
|
```
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-10-01 17:03:55 +02:00
|
|
|
|
Uses the evaluation results stored under `iteration` and visualises
|
|
|
|
|
it. The score JSON and the figure images are stored under `iteration`
|
|
|
|
|
in a `visualise` folder under the output path.
|
|
|
|
|
|
|
|
|
|
There are more commands but the rest can be very tightly linked to requirements
|
2019-10-01 17:38:49 +02:00
|
|
|
|
in the master thesis and might therefore not be of interest generally.
|
2019-10-01 17:03:55 +02:00
|
|
|
|
|
|
|
|
|
## Development setup
|
|
|
|
|
|
|
|
|
|
Clone the repository locally. Then execute the following commands inside
|
|
|
|
|
the repository:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
git submodule init
|
|
|
|
|
git submodule update
|
|
|
|
|
pip install -e .
|
|
|
|
|
pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Release History
|
2019-02-08 23:40:45 +01:00
|
|
|
|
|
2019-02-08 22:57:41 +01:00
|
|
|
|
* 0.1.0
|
2019-10-01 17:03:55 +02:00
|
|
|
|
* first release
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
|
|
|
|
## Meta
|
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
Jim Martens – [@2martens](https://twitter.com/2martens) – github@2martens.de
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
Distributed under the Apache 2.0 license. See ``LICENSE`` for more information.
|
2019-10-01 17:23:24 +02:00
|
|
|
|
The package contains the [ssd_keras][ssd_keras] implementation of Pierluigi Ferrari.
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
[https://github.com/2martens/](https://github.com/2martens/)
|
2019-02-08 22:57:41 +01:00
|
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
|
|
2019-02-08 23:40:45 +01:00
|
|
|
|
1. Fork it (<https://github.com/2martens/masterthesis/fork>)
|
2019-02-08 22:57:41 +01:00
|
|
|
|
2. Create your feature branch (`git checkout -b feature/fooBar`)
|
|
|
|
|
3. Commit your changes (`git commit -am 'Add some fooBar'`)
|
|
|
|
|
4. Push to the branch (`git push origin feature/fooBar`)
|
|
|
|
|
5. Create a new Pull Request
|
|
|
|
|
|
|
|
|
|
<!-- Markdown link & img dfn's -->
|
2019-02-08 23:40:45 +01:00
|
|
|
|
[dependencies]:https://img.shields.io/librariesio/release/pypi/twomartens.masterthesis.svg
|
|
|
|
|
[pypi-license]: https://img.shields.io/pypi/l/twomartens.masterthesis.svg
|
|
|
|
|
[pypi-url]: https://pypi.org/project/twomartens.masterthesis/
|
|
|
|
|
[pypi-downloads]: https://img.shields.io/pypi/dm/twomartens.masterthesis.svg
|
|
|
|
|
[pypi-python-versions]: https://img.shields.io/pypi/pyversions/twomartens.masterthesis.svg
|
|
|
|
|
[tf-gpu-support]: https://www.tensorflow.org/install/gpu
|
2019-10-01 17:23:24 +02:00
|
|
|
|
[ssd_keras]: https://github.com/pierluigiferrari/ssd_keras
|