SRGAN icon indicating copy to clipboard operation
SRGAN copied to clipboard

I download 32622.zip and only find the g_srgan.npz,but where is d_srgan.npz?

Open ratsuki opened this issue 8 years ago • 11 comments

ratsuki avatar Jan 04 '18 08:01 ratsuki

My most recent crash with TF 1.5.1, TL 1.8 and SRGAN on Windows 10 Pro: (I'm using a 2008 Dell laptop. That's why I'm not using the most recent version of TF.) [TL] [*] Load checkpoint/g_srgan.npz SUCCESS! [TL] [!] Load checkpoint/d_srgan.npz failed! Traceback (most recent call last): File "main.py", line 309, in File "main.py", line 113, in train ###========================= LOAD VGG ========================### NameError: name 'os' is not defined C:\Users\jimjulian\AppData\Local\Programs\Python\Python35\srgan-master>

Do I need d_srgan? I think the os error may go away if I move the import statement down the page several lines. Any suggestions? I cannot provide the verification on Broadview site, but I found a copy of g_srgan.npz elsewhere. Still looking for d_srgan.npz. [email protected] I noticed the model does not do well since no people images were included in the training. Would retraining be difficult and time consuming for people models? I want to couple SRGAN with the SRGAN video processor on github.

Thank you, Jim Julian

jimlynnjulian avatar Apr 25 '18 19:04 jimlynnjulian

you don't need d_srgan for inferencing.

for the os, pls import os

zsdonghao avatar Apr 26 '18 12:04 zsdonghao

Hello,

How do I remove the referenc to d_srgan.npz? I have been thinking the missing d_srgan.npz was causing the crash. Am I correct in assuming the crash and the missing d_srgan.npz are not related?

The 'import os' statement is at the top of the file. I moved the statement down several lines from line 4 to line 14 with no effect.

Thank you.

jimlynnjulian avatar Apr 26 '18 13:04 jimlynnjulian

d_srgan.npz only effect for training, not inference, it should be fine.

zsdonghao avatar Apr 26 '18 13:04 zsdonghao

      Hello,

How do I remove the referenc to d_srgan.npz? I have been thinking the missing d_srgan.npz was causing the crash. Am I correct in assuming the crash and the missing d_srgan.npz are not related? The 'import os' statement is at the top of the file. I moved the statement down several lines from line 4 to line 14 with no effect. Thank you.

have you solved the problem :NameError: name 'os' is not defined. I have the same problem but i have improted os. Don't know why.

yyy13 avatar Oct 08 '18 11:10 yyy13

@zsdonghao I'd like to retrain. Where do I find d_srgan.npz? Thanks!

linhdvu14 avatar Nov 09 '18 03:11 linhdvu14

Hi you don’t need to restore discriminator for retraining

zsdonghao avatar Nov 09 '18 04:11 zsdonghao

Hello @zsdonghao , Is there a way to Tensorboard the losses with epochs. How to calculate the psnr and ssim ?

Thanks

amrbenattia avatar Apr 05 '19 14:04 amrbenattia

@zsdonghao I am using release 1.2.1 that supports TF 1.4 Even though the main.py has import time included, the following issue occurs. Could you please suggest a solution.

NameError: name 'time' is not defined

rdevi-pz avatar Jan 07 '20 09:01 rdevi-pz

@zsdonghao I am using release 1.2.1 that supports TF 1.4 Even though the main.py has import time included, the following issue occurs. Could you please suggest a solution.

NameError: name 'time' is not defined

Have you solved this problem?

Chanwb avatar Jan 26 '21 01:01 Chanwb

you don't need d_srgan for inferencing.

for the os, pls import os

I have the same problem, but i have imported os module, do you have any other solution?

Chanwb avatar Jan 26 '21 01:01 Chanwb