LeeDoYup/DeblurGAN-tf

Define Data Loader Type

Closed this issue · 2 comments

Dataset forms have to be determined.
It have to consider below codes
from data.dataloader import dataloader

dataset = dataloader(path)

dataset = [Num of Pair Images, Image Pair] .

for i, data in enumerate(dataset):
In here, "data" means data pair. Thus

data.blur_img, data.real_img

have to be available.

First i decided to read image directly when it needs.
After finishing the project, i will re-factorize the code with tensorpack's dataflow.

Now........

  • load pair of data pathes: (blur path, sharp path)
  • load image
  • run batch