8000 GitHub - Solomoooon/PixRank: 🎨 Intelligent Photo Curation System - Deep Learning-based Aesthetic Assessment & Diversity Reranking · GitHub
[go: up one dir, main page]

Skip to content
SolomoooonPublic

About

🎨 Intelligent Photo Curation System - Deep Learning-based Aesthetic Assessment & Diversity Reranking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🎨 PixRank: 智能图片精选系统

Python PyTorch Streamlit License

An intelligent photo curation system based on deep learning, combining aesthetic assessment, quality detection, and diversity reranking techniques.

✨ Key Features

  • 🎨 Aesthetic Scoring: CLIP ViT-B/32 + MLP regression head for predicting image aesthetic scores
  • 🏷️ Auto Tagging: BLIP-2 generates keywords and descriptive captions
  • 🔍 Quality Assessment: NR-IQA no-reference image quality evaluation
  • 🎯 Diversity Reranking: DPP algorithm eliminates redundancy and improves recommendation diversity
  • 📱 Web Interface: Streamlit drag-and-drop upload → one-click curation → export results

🚀 Quick Start

Requirements

  • Python 3.8+
  • PyTorch 2.0+
  • Streamlit 1.25+

Installation

pip install -r requirements.txt

Launch Web Interface

# Method 1: Using startup script
./start_demo.sh

# Method 2: Manual launch
streamlit run demo/app.py

Visit http://localhost:8501 to get started!

📊 Core Metrics

  • Aesthetic Correlation: Spearman ρ ≥ 0.40
  • Inference Speed: <120ms/image
  • Curation Effect: NDCG@20 +14%, repetition rate -35%
  • Diversity Improvement: +14% NDCG@20

🛠️ Tech Stack

  • Deep Learning: PyTorch, CLIP, BLIP-2, Transformers
  • Computer Vision: NR-IQA, feature extraction, image processing
  • Algorithms: DPP (Determinantal Point Process), cosine similarity, MLP regression
  • Frontend: Streamlit, HTML/CSS, responsive design
  • Data Processing: Pandas, NumPy, PIL, OpenCV

📁 Project Structure

PixRank/
├── src/                    # Core algorithm implementation
│   ├── aesthetics/        # Aesthetic assessment module
│   ├── quality/           # Quality assessment module
│   ├── diversity/         # Diversity reranking module
│   ├── scoring/           # Improved scoring system
│   └── utils/             # Utility functions
├── demo/                  # Streamlit demo application
├── data/                  # Datasets and samples
├── models/                # Pre-trained model weights
├── test_*.py             # Test files
└── requirements.txt       # Dependencies list

🎯 功能特性

1. 审美打分模块

  • 使用CLIP ViT-B/32提取视觉特征
  • 自定义MLP回归头预测美学分数
  • 支持AVA数据集训练

2. 自动标签生成

  • BLIP-2预训练模型
  • 生成关键词和描述性标题
  • 无需训练,直接使用

3. 质量评估模块

  • NR-IQA无参考图像质量评估
  • ResNet50特征提取器
  • 评估清晰度、噪点、技术质量

4. 多样性重排模块

  • DPP (Determinantal Point Process)算法
  • 贪心选择策略
  • 平衡质量与多样性

5. Web演示界面

  • 现代化UI设计
  • 拖拽上传支持
  • 实时处理进度
  • 结果导出功能

📈 使用流程

  1. 上传图片 → 选择要精选的图片文件
  2. 设置参数 → 调整精选数量和权重
  3. 开始精选 → 点击处理按钮
  4. 查看结果 → 浏览精选图片和分数
  5. 下载结果 → 保存精选图片和数据

🔧 配置说明

权重设置

  • 美学权重: 0.0-1.0 (默认0.6)
  • 质量权重: 自动计算 (1.0 - 美学权重)
  • 精选数量: 1-50张 (默认10张)

支持格式

  • JPG, JPEG
  • PNG
  • BMP
  • TIFF

📝 简历描述

Built an intelligent photo curation engine using deep learning with CLIP, BLIP-2, and NR-IQA models, implementing DPP-based diversity reranking to improve recommendation quality by 14% NDCG@20

• Developed multi-modal aesthetic scoring system using CLIP ViT-B/32 feature extraction with custom MLP regression head, achieving Spearman correlation ρ ≥ 0.40 on AVA dataset (250K images)

• Implemented automated content tagging pipeline with BLIP-2 transformer model for keyword generation and descriptive captioning, processing 100+ images per batch

• Designed diversity-aware reranking algorithm using Determinantal Point Process (DPP) to eliminate redundant selections, reducing similarity by 35% while maintaining quality scores

🤝 贡献

欢迎提交Issue和Pull Request!

📄 许可证

本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详情

🙏 致谢


⭐ 如果这个项目对你有帮助,请给个Star!

About

🎨 Intelligent Photo Curation System - Deep Learning-based Aesthetic Assessment & Diversity Reranking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0