File size: 3,764 Bytes
e64e629
30ce170
 
 
 
 
 
 
 
e64e629
30ce170
96d9907
30ce170
3399239
30ce170
96d9907
30ce170
96d9907
 
 
30ce170
96d9907
 
 
 
 
 
30ce170
96d9907
30ce170
96d9907
30ce170
96d9907
30ce170
96d9907
 
 
 
 
 
 
 
 
 
 
 
30ce170
96d9907
30ce170
96d9907
 
 
 
 
30ce170
 
 
 
96d9907
 
 
30ce170
96d9907
 
 
30ce170
96d9907
 
30ce170
 
96d9907
30ce170
 
 
 
 
 
 
96d9907
 
 
 
 
 
 
 
 
 
30ce170
96d9907
30ce170
 
 
 
3399239
96d9907
3399239
 
 
 
 
96d9907
30ce170
 
 
96d9907
30ce170
96d9907
 
30ce170
96d9907
30ce170
96d9907
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
license: mit
library_name: pytorch
tags:
- video-aesthetic-assessment
- video-quality-assessment
- aesthetics
- clip
- peak-end-net
---

# 🎬 Peak-End Net

**Peak-End-Net: A Peak-End Rule Inspired Framework for Generalizable Video Aesthetic Assessment**

**Accepted to ACM Multimedia 2026**

[πŸ“„ Paper](https://arxiv.org/abs/2607.13941) Β·
[πŸ’» Code](https://github.com/AMAP-ML/Peak-End-Net) Β·
[πŸ€— Model](https://huggingface.co/GD-ML/Peak-End-Net/tree/main)

Peak-End Net is a video aesthetic assessment framework inspired by the
**peak-end rule**: people tend to judge an experience disproportionately by its
most salient moments and its ending, rather than by uniformly averaging the
entire experience. Peak-End Net translates this insight into a learnable
temporal model that predicts an overall aesthetic score together with ten
fine-grained attribute scores.

## ✨ Overview

![Peak-End Net pipeline](https://github.com/AMAP-ML/Peak-End-Net/raw/main/pipeline.png)

The framework contains five main components:

- **Frame Aesthetic Perceiver** β€” a frozen CLIP ViT-L/14 encoder and an
  AVA-pretrained aesthetic head produce a 10-bin score distribution and an
  expected aesthetic score for each frame.
- **Key Moment Discovery** β€” learnable peak-, valley-, and end-aware signals
  are combined into a unified temporal attention distribution.
- **Peak-End Aggregation** β€” attention-weighted pooling summarizes the frame
  features into a video-level representation.
- **Rhythm Encoder** β€” a multi-scale 1D CNN with kernel sizes 3, 5, and 7
  captures local fluctuations and longer-range trends in the frame-score
  sequence.
- **Gated Fusion** β€” a lightweight second-stage module adaptively combines the
  learned video-level score with the mean frame-level AVA score.

## πŸš€ Pretrained Model and Inference

The self-contained `Peak-End-Net.pth` checkpoint includes the CLIP ViT-L/14
encoder, AVA aesthetic head, Peak-End modules, and gated-fusion module. No
separate AVA or Stage 1 checkpoint is required for inference.

Clone the code repository and install dependencies:

```bash
git clone https://github.com/AMAP-ML/Peak-End-Net.git
cd Peak-End-Net

conda create -n peak-end-net python=3.10 -y
conda activate peak-end-net
pip install -r requirements.txt
```

Download the checkpoint:

```bash
hf download GD-ML/Peak-End-Net Peak-End-Net.pth --local-dir ./checkpoints
```

Run inference on a video:

```bash
python inference.py \
    --checkpoint ./checkpoints/Peak-End-Net.pth \
    --video /path/to/video.mp4
```

The script reports the overall score, ten attribute scores
(`composition`, `shotsize`, `lighting`, `visualtone`, `color`, `depthoffield`,
`expression`, `movement`, `costume`, `makeup`), the fusion gate, and the two
scores combined by the gate.

## πŸ‹οΈ Training

Full training instructions β€” pretraining the AVA aesthetic head, Stage 1
(Peak-End Net), and Stage 2 (Gated Fusion) β€” are provided in the
[GitHub repository](https://github.com/AMAP-ML/Peak-End-Net).

## πŸ“– Citation

If you find this work useful, please cite:

```bibtex
@misc{li2026peakendnetpeakendruleinspired,
      title={Peak-End-Net: A Peak-End Rule Inspired Framework for Generalizable Video Aesthetic Assessment},
      author={Geng Li and Haiwen Li and Rui Chen and Jing Tang and Lei Sun and Xiangxiang Chu},
      year={2026},
      eprint={2607.13941},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2607.13941},
}
```

## 🀝 Acknowledgments

This project builds on [CLIP](https://github.com/openai/CLIP) and
[CLIP4Clip](https://github.com/ArrowLuo/CLIP4Clip).

## πŸ“„ License

This project is released under the
[MIT License](https://github.com/AMAP-ML/Peak-End-Net/blob/main/LICENSE).