# eval_utils **Repository Path**: desyang-hub/eval_utils ## Basic Information - **Project Name**: eval_utils - **Description**: 评估图像psnr、ssim - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-25 - **Last Updated**: 2025-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Eval Utils This is a toolkit for image evaluation, providing the functionality to calculate PSNR (Peak Signal-to-Noise Ratio) and SSIM (Structural Similarity Index). ## Features - Calculate PSNR and SSIM metrics between two images - Support batch reading of image files from directories - Provide a command-line interface for easy invocation ## Installation Please ensure you have a Python environment installed, and install dependencies via pip: ```bash pip install -r requirements.txt ``` ## Usage ### Command Line Interface Use the command line tool to evaluate two image directories: ```bash python -m src.eval_utils.cli --img_dir1 path/to/first/images --img_dir2 path/to/second/images ``` ### Programming Interface You can also use the evaluation functionality in your own Python code: ```python from src.eval_utils.eval import calculate_psnr_ssim psnr, ssim = calculate_psnr_ssim("path/to/first/images", "path/to/second/images") print(f"PSNR: {psnr}, SSIM: {ssim}") ``` ## Contributions Welcome to submit PRs or Issues to improve this tool! ## License This project is licensed under the MIT License. See the LICENSE file for details.