Skip to main content

Visualization tool for your evaluation folder

Project description

Vis-eval: Visualization tool for your evaluation folder

Installation:

pip install viseval

Usage:

viseval.Table takes in a list of dicts. Every element in the list indicates a row in the HTML visualization. Each dict should contain column-name: image-path.

from viseval import Table

eval_dir = Path("eval_results")
# Vis data is a list of dictionaries.
# - Each element in the list corresponds to a row in the table.
# - Each key:value pair in a dictionary represents column-name: column-data.
vis_data = []
vis_data.append({
    "gt_img": eval_results / "0_gt.png",
    "pred_img": eval_results / "0_gt.png",
    "gt_mesh": eval_results / "0_gt_mesh.obj",
    "pred_mesh": eval_results / "0_pred_mesh.obj",
    "gt_label": "0_gt_label",
    "pred_label": "0_gt_label",
})
# Populate vis data with the image / mesh path, text data in your eval folder.

# Once populated, save visualization table as html file
table = Table.from_list_dict(vis_data, eval_dir)
html_path = table.generate()

For demo, you can run python examples/demo.py. To visualize the generated html file, run a simple python -m http.server from inside the evaluation directory and open localhost:8000 url in any web browser:

Sample visualization

Acknowledgement:

This idea and the repository is built on a tool I used in Professor Shuran's lab. The initial code is written via Zhenjia Xu.

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

viseval-0.0.2.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

viseval-0.0.2.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file viseval-0.0.2.3.tar.gz.

File metadata

  • Download URL: viseval-0.0.2.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for viseval-0.0.2.3.tar.gz
Algorithm Hash digest
SHA256 c19a7a3cf88412a1d756f8dc3c7947d8e3ca4a6193f26e7fc8cabd1690eb2284
MD5 76b2fb944c66f55b4961a13d265d1b4a
BLAKE2b-256 09da9ec376b37cc5683c2c1884f9cac9bc8fe138f3dad868257264610468f869

See more details on using hashes here.

File details

Details for the file viseval-0.0.2.3-py3-none-any.whl.

File metadata

  • Download URL: viseval-0.0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for viseval-0.0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 743a7ed33e8da5c5d625a9f529e5a71a7597e105b87a3483ad01308e55c4f71f
MD5 e075228c5960760238479cafb1e37e71
BLAKE2b-256 afd2381b5a8663c857e36bc805391f849f765056483c4f85618135678f35773d

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