VDSR implementation with PyTorch and Tensorflow 2.
pytorch$ conda create -f pytorch_env.yml
pytorch$ conda activate torch
pytorch$ python main.py
tf2$ conda create -f tf2_env.yml
tf2$ conda activate tf2
tf2$ python run_vdsr.py
VDSR implementation with PyTorch and Tensorflow 2
lr confusion
VDSR-pytorch-tf2/pytorch/train.py
Line 50 in 33618ee
VDSR-pytorch-tf2/pytorch/train.py
Line 62 in 33618ee
etc...
Choosing best PSNR
VDSR-pytorch-tf2/pytorch/train.py
Line 55 in 33618ee
Efficient validation code
Remove unused code in ops.py
Adding super.init inside dataset?
Not needed. (https://pytorch.org/docs/stable/_modules/torch/utils/data/dataset.html#Dataset)
Implement dataset lazy loading with resizing. And change custom dataset name.
Use pytorch native functions for transformation
Not recommended (Not convenient for SR task)
Handle scale variable.
Test detatch function
There is a very nasty problem involving pytorch DataLoader. In the log below, you notice that dataloader delay is 6s while the overall epoch takes only 8s. Tensorflow2 only takes 3s for one epoch on same settings(TODO: make tf2 time consumption test code).
[*] Start training
***> dataloader delay: 5.8484
>> end of iteration (time interval: 0.0408) )
[2020-04-06 22:22:14]
>> epoch 1 loss: 0.045038 (lr: 1.00e-03)
***> dataloader delay: 6.1289
>> end of iteration (time interval: 0.0431) )
[2020-04-06 22:22:26]
>> epoch 2 loss: 0.001379 (lr: 1.00e-03)
On every start of epoch, there is a heavy operation done by DataLoader. For example, remaking threads, thus re-copying each resources.
Iteration doesn't start until each worker completes on batch(=32).
https://discuss.pytorch.org/t/dataloader-with-num-workers-1-hangs-every-epoch/20323/9
https://discuss.pytorch.org/t/dataloader-resets-dataset-state/27960/4
https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.