dongheehand / DeblurGAN-tf

Tensorflow implementation of DeblurGAN(Blind Motion Deblurring Using Conditional Adversarial Networks)
80 stars 24 forks source link

VGG_MEAN 관련 #5

Closed DonghoonPark12 closed 5 years ago

DonghoonPark12 commented 5 years ago

안녕하세요. 잘 보았습니다. 도움이 많이 되었습니다. 다름이 아니라 해당 라인 에서 VGG_MEAN은 랜덤으로 1000개가 뽑혀진 GoPro 1000개 이미지 마다 새로 갱신되어야 하는 줄 알았는데..

Pretrained 된 이미지넷 데이터 셋의 평균 값을 말하는 것이지요?.

추가적으로 in_memory가 어떤 옵션인가요? 아무리 생각해도 어떤 옵션인지 잘 이해가 되지가 않아서요.

감사합니다.

dongheehand commented 5 years ago
  1. 네 말씀해주신 곳에서 VGG_MEAN 은 이미지넷 데이터셋의 평균 값을 의미합니다.
  2. in_memory 의 경우, 데이터를 메모리에 올린 후에 train/inference를 진행할것인지(in_memory option : True) 아니면 데이터를 모두 메모리에 올리지않고 각 배치에 해당하는 이미지만 읽은 후 train/inference를 진행할것인지를 나타내는(in_memory option : False) option 입니다.
dongheehand commented 5 years ago

For the people who don't know Korean, I translated the questions and answers.

Q1 : What is VGG_MEAN in the vgg19.py A1 : It is the average value of the ImageNet dataset.

Q2 : What is in_memory option? A2 : If you set in_memory option to True, all the data is loaded to main memory. After that, each batch is loaded from main memory, when each batch is used for training/inference If you set in_memory option to False, each batch is loaded from disk when each batch is used for training/inference