Visualization tool for your evaluation folder
Project description
Vis-eval: Visualization tool for your evaluation folder
Installation:
pip install viseval
Usage:
viseval.visualize_helper 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 visualize_helper
eval_dir = Path("eval_results")
gt_img_paths = []
pred_img_paths = []
# Add your standard model evaluation code here:
# - Save gt and predicted images inside eval_dir
# - Add corresponding img paths in gt_img_paths and pred_img_paths list
# Save html visualizations
visualization_rows = [
{"gt": gt_img_path, "pred": pred_img_path}
for gt_img_path, pred_img_path in zip(gt_img_paths, pred_img_paths)
]
html_path = visualize_helper(visualization_rows, eval_dir)
print(html_path)
To visualize the generated html file, use either of the following method:
- Open the html file in a browser
- Run a simple python http server from inside the evaluation directory and open localhost:8000 url:
python -m http.server
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file viseval-0.0.2.2.tar.gz.
File metadata
- Download URL: viseval-0.0.2.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ed5ebfccb7ea229e102b5665fe67577d697d17bef625bf6c6133a9b7745c39
|
|
| MD5 |
8c91eb7370011685d06288b72c167e7e
|
|
| BLAKE2b-256 |
681d24aba80ead23dab32981dbc8cbc36ea5928cb7885c30823d2ba522e5945d
|
File details
Details for the file viseval-0.0.2.2-py3-none-any.whl.
File metadata
- Download URL: viseval-0.0.2.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055886fc9b104be2d5838b54330d35e31d428ad9dbdea1dcd57b225bae72499f
|
|
| MD5 |
b53c77f8a9ca5414bf78e90528b9f499
|
|
| BLAKE2b-256 |
7fe9305d92f6e8cacf099384589ee35a46f0206916a488558d9b7c7bf01d7102
|