Skip to main content

Tools and utilities for the HoHo Dataset and S23DR Competition

Project description


license: apache-2.0

HoHo2025 Tools

Tools and utilities for the S23DR-2025 competition and HoHo25k Dataset

Installation

pip install hoho2025

pip install over http

pip install git+http://hf.co/usm3d/tools2025.git    

or editable

git clone http://hf.co/usm3d/tools2025 
cd tools2025
pip install -e .

Usage example 2026

See in notebook

from datasets import load_dataset
from hoho2025.vis import plot_all_modalities
from hoho2025.viz3d import *

def read_colmap_rec(colmap_data):
    import pycolmap
    import tempfile,zipfile
    import io
    with tempfile.TemporaryDirectory() as tmpdir:
        with zipfile.ZipFile(io.BytesIO(colmap_data), "r") as zf:
            zf.extractall(tmpdir)  # unpacks cameras.txt, images.txt, etc. to tmpdir
        # Now parse with pycolmap
        rec = pycolmap.Reconstruction(tmpdir)
        return rec

ds = load_dataset("usm3d/hoho22k_2026_trainval", streaming=True, trust_remote_code=True)
for a in ds['train']:
    break

fig, ax = plot_all_modalities(a)

## Now 3d

fig3d = init_figure()
plot_reconstruction(fig3d, read_colmap_rec(a['colmap']))
plot_wireframe(fig3d, a['wf_vertices'], a['wf_edges'], a['wf_classifications'])
plot_bpo_cameras_from_entry(fig3d, a)
fig3d

Example wireframe estimation

Look in hoho2025/example_solution.py

from hoho2025.example_solutions import predict_wireframe
pred_vertices, pred_connections = predict_wireframe(a)

fig3d = init_figure()
plot_reconstruction(fig3d, read_colmap_rec(a['colmap']))
plot_wireframe(fig3d, pred_vertices, pred_connections, color='rgb(0, 0, 255)')
fig3d

And to get the metric

from hoho2025.metric_helper import hss

score = hss(pred_vertices, pred_connections, a['wf_vertices'], a['wf_edges'], vert_thresh=0.5, edge_thresh=0.5)
print (score)

Usage example 2025

See in notebooks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hoho2025-0.2.2.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hoho2025-0.2.2-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file hoho2025-0.2.2.tar.gz.

File metadata

  • Download URL: hoho2025-0.2.2.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for hoho2025-0.2.2.tar.gz
Algorithm Hash digest
SHA256 0b95419cafab35c9d7c6a8396d00c46764e30791b29b54eceb3de7f582ba141d
MD5 073ccd8141f354cc3d38881d4ed20bd4
BLAKE2b-256 528f6e8d3f89c79e08c533c71839d2bdb49b5bf60f0973b07cc14b955199cb07

See more details on using hashes here.

File details

Details for the file hoho2025-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: hoho2025-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for hoho2025-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 53728df8ffd6620648962d992e4fb990a8a961aef4a08d80984fc3286e4d7739
MD5 dee19548b0d1ca7b9e8ce4454d73dc9b
BLAKE2b-256 b0994def015583470e1c62562be9f4d757a8f04a1b3050bb74790649ea780239

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page