← 开源
david-gpu

srez

Image super-resolution through deep learning

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
5.27k
Star
650
Fork
+0
本周
3
贡献者
创建于 2016-08-26 · 更新于 2026-10-06 · 今日第 7420 名
主要开发者
david-gpuAidanHandaradarhere

david-gpu/srez 排名第 7,420,有 5,266 个星标。

同类别比较

david-gpu/srez 排名第 7,420,此处有 8 个同类条目;HIT-SCIR/ltp 排名第 7,421。

同类别比较
名称排名指标
ibab/tensorflow-wavenet7,398
语言:
Python
星标数:
5,422
分叉数:
1,262
简介:
A TensorFlow implementation of DeepMind's WaveNet paper
google-deepmind/graph_nets7,401
语言:
Python
星标数:
5,407
分叉数:
777
简介:
Build Graph Nets in Tensorflow
ashleve/lightning-hydra-template7,407
语言:
Python
星标数:
5,365
分叉数:
757
简介:
PyTorch Lightning + Hydra. A very user-friendly template for ML experimentation. ⚡🔥⚡
NVIDIA/cuml7,411
语言:
Python
星标数:
5,305
分叉数:
688
简介:
NVIDIA cuML: GPU-Accelerated Machine Learning
HIT-SCIR/ltp7,421
语言:
Python
星标数:
5,265
分叉数:
1,056
简介:
Language Technology Platform
awslabs/gluonts7,424
语言:
Python
星标数:
5,248
分叉数:
840
简介:
Probabilistic time series modeling in Python
microsoft/SynapseML7,426
语言:
Scala
星标数:
5,245
分叉数:
868
简介:
Simple and Distributed Machine Learning Python Library porting ML algorithms for Spark
dbolya/yolact7,427
语言:
Python
星标数:
5,243
分叉数:
1,318
简介:
A simple, fully convolutional model for real-time instance segmentation.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
关键词Image production
星标数5,266
分叉数650
贡献者3
创建日期2016-08-26
更新日期2026-10-06
1 天星标数0
7 天星标数0
排名7,420
上次排名7,568
排名变化148
7 天星标排名11,717
上次 7 天星标排名11,779
7 天星标排名变化62
总星标排名2,675
上次总星标排名2,669
总星标排名变化-6
国家Canada
README 摘录

srez Image super-resolution through deep learning. This project uses deep learning to upscale 16x16 images by a 4x factor. The resulting 64x64 images display sharp features that are plausible based on the dataset that was used to train the neural net. Here's an random, non cherry-picked, example of what this network can do. From left to right, the first column is the 16x16 input image, the second one is what you would get from a standard bicubic interpolation

, the third is the output generated by the neural net, and on the right is the ground truth. As you can see, the network is able to produce a very plausible reconstruction of the original face. As the dataset is mainly composed of well-illuminated faces looking straight ahead, the reconstruction is poorer when the face is at an angle, poorly illuminated, or partially occluded by eyeglasses or hands. This particular example was produced after training the network for 3

hours on a GTX 1080 GPU, equivalent to 130,000 batches or about 10 epochs. How it works In essence the architecture is a DCGAN where the input to the generator network is the 16x16 image rather than a multinomial gaussian distribution. In addition to that the loss function of the generator has a term that measures the L1 difference between the 16x16 input and downscaled version of the image produced by the generator. The adversarial term of the loss

function ensures the generator produces plausible faces, while the L1 term ensures that those faces resemble the low-res input data. We have found that this L1 term greatly accelerates the convergence of the network during the first batches and also appears to prevent the generator from getting stuck in a poor local solution. Finally, the generator network relies on ResNet modules as we've found them to train substantially faster than more old-fashioned architectures. The adversarial network is much

simpler as the use of ResNet modules did not provide an advantage during our experimentation. Requirements You will need Python 3 with Tensorflow, numpy, scipy and moviepy. Dataset After you have the required software above you will also need the . Extract all images to a subfolder named . Training the model Training with default settings: . The script will periodically output an example batch in PNG format onto the folder, and checkpoint data will be stored in the folder. After the network

has trained you can also produce an animation showing the evolution of the output by running . About the author LinkedIn profile of David Garcia.

常见问题

记录了多少星标和分叉?

david-gpu/srez 有 5,266 个星标和 650 个分叉。

仓库排名是多少?

david-gpu/srez 排名第 7,420。

记录的语言和类别是什么?

david-gpu/srez 有 5,266 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

david-gpu/srez 与 HIT-SCIR/ltp 比较,后者排名第 7,421,有 5,265 个星标。

README

srez

Image super-resolution through deep learning. This project uses deep learning to upscale 16x16 images by a 4x factor. The resulting 64x64 images display sharp features that are plausible based on the dataset that was used to train the neural net.

Here's an random, non cherry-picked, example of what this network can do. From left to right, the first column is the 16x16 input image, the second one is what you would get from a standard bicubic interpolation, the third is the output generated by the neural net, and on the right is the ground truth.

As you can see, the network is able to produce a very plausible reconstruction of the original face. As the dataset is mainly composed of well-illuminated faces looking straight ahead, the reconstruction is poorer when the face is at an angle, poorly illuminated, or partially occluded by eyeglasses or hands.

This particular example was produced after training the network for 3 hours on a GTX 1080 GPU, equivalent to 130,000 batches or about 10 epochs.

How it works

In essence the architecture is a DCGAN where the input to the generator network is the 16x16 image rather than a multinomial gaussian distribution.

In addition to that the loss function of the generator has a term that measures the L1 difference between the 16x16 input and downscaled version of the image produced by the generator.

The adversarial term of the loss function ensures the generator produces plausible faces, while the L1 term ensures that those faces resemble the low-res input data. We have found that this L1 term greatly accelerates the convergence of the network during the first batches and also appears to prevent the generator from getting stuck in a poor local solution.

Finally, the generator network relies on ResNet modules as we've found them to train substantially faster than more old-fashioned architectures. The adversarial network is much simpler as the use of ResNet modules did not provide an advantage during our experimentation.

Requirements

You will need Python 3 with Tensorflow, numpy, scipy and moviepy. See requirements.txt for details.

Dataset

After you have the required software above you will also need the Large-scale CelebFaces Attributes (CelebA) Dataset. The model expects the Align&Cropped Images version. Extract all images to a subfolder named dataset. I.e. srez/dataset/lotsoffiles.jpg.

Training the model

Training with default settings: python3 srez_main.py --run train. The script will periodically output an example batch in PNG format onto the srez/train folder, and checkpoint data will be stored in the srez/checkpoint folder.

After the network has trained you can also produce an animation showing the evolution of the output by running python3 srez_main.py --run demo.

About the author

LinkedIn profile of David Garcia.

排名相邻
同类项目