Skip to content

Commit

Permalink
Updated Readme with Infos for Release Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Büro committed Oct 13, 2020
1 parent 94fc118 commit 49b2f68
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions README.md
Expand Up @@ -15,6 +15,8 @@ HTML format (only usable if repository is available in local storage): [vhh_cmc_

* Ubuntu 18.04 LTS
* python version 3.6.x

### 0 Environment Setup (optional)

**Create a virtual environment:**

Expand All @@ -24,15 +26,26 @@ HTML format (only usable if repository is available in local storage): [vhh_cmc_
**Activate the environment:**

* source /xxx/vhh_cmc/bin/activate

### 1A Install using Pip

The VHH Shot Boundary Detection package is available on [PyPI](https://pypi.org/project/vhh-cmc/) and can be installed via ```pip```.

* Update pip and setuptools (tested using pip\==20.2.3 and setuptools==50.3.0)
* ```pip install vhh-cmc```

Alternatively, you can also build the package from source.

### 1B Install by building from Source

**Checkout vhh_cmc repository to a specified folder:**

* git clone https://github.com/dahe-cvl/vhh_cmc

**Install the cmc package and all dependencies:**

* Update pip and setuptools (tested using pip\==20.2.3 and setuptools==50.3.0)
* Install the Wheel package: ```pip install wheel```
* Update ```pip``` and ```setuptools``` (tested using pip\==20.2.3 and setuptools==50.3.0)
* Install the ```wheel``` package: ```pip install wheel```
* change to the root directory of the repository (includes setup.py)
* ```python setup.py bdist_wheel```
* The aforementioned command should create a /dist directory containing a wheel. Install the package using ```python -m pip install dist/xxx.whl```
Expand All @@ -41,19 +54,28 @@ HTML format (only usable if repository is available in local storage): [vhh_cmc_
You can check the success of the installation by using the commend *pip list*. This command should give you a list
with all installed python packages and it should include *vhh-cmc*.

**Setup environment variables:**
### 2 Setup environment variables (optional)

* source /data/dhelm/python_virtenv/vhh_sbd_env/bin/activate
* export CUDA_VISIBLE_DEVICES=0
* export PYTHONPATH=$PYTHONPATH:/XXX/vhh_cmc/:/XXX/vhh_cmc/Develop/:/XXX/vhh_cmc/Demo/

**Run demo script**
### 3 Run demo script (optional)

* change to root directory of the repository
* python Demo/vhh_cmc_run_on_single_video.py

## Release Generation

* Create and checkout release branch: (e.g. v1.1.0): ```git checkout -b v1.1.0```
* Update version number in setup.py
* Update Sphinx documentation and release version
* Make sure that ```pip``` and ```setuptools``` are up to date
* Install ```wheel``` and ```twine```
* Build Source Archive and Built Distribution using ```python setup.py sdist bdist_wheel```
* Upload package to PyPI using ```twine upload dist/*```

**Evaluation & Results**
## Evaluation & Results

Experiment 1:
Most Common Angle + Random Features + LK Optical Flow (pescoller)
Expand Down Expand Up @@ -223,5 +245,4 @@ ORB features and TH=2
| accuracy | | | 0.94 | 1213 |
|----------------|------|------|--------|--------|
| macro avg | 0.62 | 0.63 | 0.63 | 1213 |
| weighted avg | 0.95 | 0.94 | 0.95 | 1213 |

| weighted avg | 0.95 | 0.94 | 0.95 | 1213 |

0 comments on commit 49b2f68

Please sign in to comment.