Ebench is an ehancement benchmark tool.
Project description
ebench
Ebench is a modular and extensible benchmarking framework for evaluating image and video enhancement models. It supports inference, evaluation, and dataset tagging management while ensuring a structured workflow for fair and reproducible comparisons.
Usage
Ebench conducts a minimum development granularity evaluation and analysis for different usage scenarios.
All proceduer follow below pipeline:
- prepare benchmark videos/images or using existed sets;
- ps: the video will together to yield a image by using first frame
- submit your enhancement videos or select enhancement algorithm;
- select index to split dataset, select evaluators, select enhancement to compare;
- download or view your report.
# set environment variables
export THEA_ROOT=/cephFS/video_lab/thirdparty/thea-release
export LD_LIBRARY_PATH=$THEA_ROOT/lib:$THEA_ROOT/thirdparty/cuda/lib:$THEA_ROOT/thirdparty/cudnn/lib:$THEA_ROOT/thirdparty/dodo/lib:$THEA_ROOT/thirdparty/eagle/lib:$THEA_ROOT/thirdparty/eagle/thirdparty/opencv/lib:$THEA_ROOT/thirdparty/falcon/lib:$THEA_ROOT/thirdparty/openvino/lib/intel64:$THEA_ROOT/thirdparty/openvino/3rdparty/tbb/lib:$THEA_ROOT/thirdparty/tensorrt/lib:$LD_LIBRARY_PATH
1. prepare datasets
- search all videos and images
- zip them into a package for download
- it will put all data into local folder and make a filelist
python -m ebench.dataset -t prepare -f /cephFS/yangying/VSR2024/assets/faceratio_bigolive_videos -d face0409
- tagging dataset by using evaluators
- it will yield a list with each item with a tagging file
# initialize the dataset
python -m ebench.dataset -t tag -n face0409 -e vqa_v4_4
# add more tag or update tag
python -m ebench.dataset -t tag -n face0409 -e vsc_v4
- check dataset information
python -m ebench.dataset -t view -n face0409
2. evaluate enhancement videos
- submit your enhancement result according to dataset format
- pay attention to keep same folder structure with datasets
python -m ebench.dataset -t prepare -f /cephFS/yangying/VSR2024/assets/faceratio_bigolive_videos_bfsr48 -d face0409_bfsr48
python -m ebench.dataset -t tag -n face0409_bfsr48 -e vqa_v4_4
python -m ebench.dataset -t view -n face0409_bfsr48
3. compare your dataset with baseline
- splits dataset into different parts according to specific tagging info
- select evaluator indices to compare, the order will be:
- (bench.ind1, enh1.ind1, enh2.ind1), (bench.ind2, enh1.ind2, enh2.ind2), ...
- yield a csv file with current timestamp: 202504091619.csv
python -m ebench -t compare -n dataset dataset_vls_v2 dataset_vls_v3 -s vqa.y -e vqa.qs_tech vqa.qs_tech_fg vqa.qs_tech_face
4. use pre-defined enhancement algorithm
- using step4 method to generate an enhanced dataset (skip step2)
# using thea binary to generate enhanced results
python -m ebench.predict -t thea -n face0409 -d face0409_vls_v2 -m thea_demo_vls_v2
5. summary the results using AI-report
6. start a web service to check
python -m ebench -t app -p 8811
Supports
1. pre-defined datasets
2. pre-defined algorithms
3. pre-defined evaluators
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ebench-1.0.0.tar.gz
(21.2 kB
view details)
File details
Details for the file ebench-1.0.0.tar.gz.
File metadata
- Download URL: ebench-1.0.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a41fef44d74a60414760209b881c0313b2a7218fd4f59b96b58bbfb35543623
|
|
| MD5 |
2d7f9eb0be7df9ca461e2a8e9af4cad7
|
|
| BLAKE2b-256 |
41dfbc6f4b70b7f750df8374eac23a67bae41ff65fabddd799a6676b3ad8eab9
|