Skip to content

Commit

Permalink
Include requirements for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzhaiyu committed Nov 22, 2022
1 parent 4918a7a commit 4face60
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ pip install -r points2surf/requirements.txt
For training, make sure CUDA is available and enabled.
Navigate to [`points2surf/README.md`](https://github.com/ErlerPhilipp/points2surf) for more details on its requirements.

In addition, install dependencies for logging:

```bash
pip install -r requirements.txt
```

## Getting started

### Reconstrction demo
Expand Down
5 changes: 3 additions & 2 deletions conf/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ eval_samples: 10000
eval_csv: 'hausdorff_dist_pred_rec.csv'

# hydra settings
override hydra/job_logging: colorlog
override hydra/hydra_logging: colorlog
hydra:
run:
dir: '${outdir}'
verbose: false
defaults:
- override hydra/job_logging: colorlog
- override hydra/hydra_logging: colorlog
2 changes: 1 addition & 1 deletion download.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def update_to(b=1, bsize=1, tsize=None):
return update_to


@hydra.main(config_path='./conf', config_name='config')
@hydra.main(config_path='./conf', config_name='config', version_base='1.2')
def download(cfg: DictConfig):
"""
Download datasets and/or models from public urls.
Expand Down
2 changes: 1 addition & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from points2surf.source.base import evaluation


@hydra.main(config_path='./conf', config_name='config')
@hydra.main(config_path='./conf', config_name='config', version_base='1.2')
def evaluate_hausdorff_dist(cfg: DictConfig):
"""
Evaluate Hausdorff distance between reconstructed and GT models.
Expand Down
4 changes: 2 additions & 2 deletions reconstruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from utils import create_cell_complex, create_query_points, extract_surface, infer_sdf


@hydra.main(config_path='./conf', config_name='config')
@hydra.main(config_path='./conf', config_name='config', version_base='1.2')
def reconstruct_full(cfg: DictConfig):
"""
Full reconstruction pipeline starting from point clouds.
Expand Down Expand Up @@ -82,7 +82,7 @@ def reconstruct_full(cfg: DictConfig):
sdf_values, graph_cut=True, coefficient=cfg.coefficient)


@hydra.main(config_path='./conf', config_name='config')
@hydra.main(config_path='./conf', config_name='config', version_base='1.2')
def reconstruct_surface(cfg: DictConfig):
"""
Reconstruction of surface extraction from cell complexes and SDF predictions.
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hydra-core==1.2.0
hydra-colorlog==1.2.0
omegaconf==2.2.3

0 comments on commit 4face60

Please sign in to comment.