|
ИСТИНА |
Войти в систему Регистрация |
Интеллектуальная Система Тематического Исследования НАукометрических данных |
||
Embodiments of this application provide a neural network training method and a neural network training apparatus, including: obtaining multiple training image pairs, where each pair of the multiple training image pairs includes a high-quality image and a low-quality image, where the high-quality image and the low-quality image are images with different qualities depicting the same scenery; inputting the low-quality image into an enhancement network to generate an enhanced image; inputting the high-quality image and at least two intermediate tensors into a degradation network to generate a degraded image, where the at least two intermediate tensors are determined based on the enhancement network; determining a first loss function based on the high-quality image and the enhanced image; determining a second loss function based on the low-quality image and the degraded image; and updating the neural network based on the first loss function and the second loss function, where the neural network includes the enhancement network and the degradation network. According to the technical solution, the neural network training method can improve training efficiency and improve image enhancement quality.