Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem applying SR to custom image placed in the project folder- Urgent resolution requested #122

Open
batraamul opened this issue May 16, 2021 · 0 comments

Comments

@batraamul
Copy link

DCSCN v2-------------------------------------
2021/4/6 14:4:44 [dcscn_L12_F196to48_NIN_A64_PS_R1F32]
Python Interpreter version:3.7
tensorflow version:2.4.1
numpy version:1.19.5
Session and graph initialized.
Feature:196 166 148 133 120 108 97 86 76 66 57 48 Total: (1301)64 32 32 384 1 Complexity:1,754,942 Receptive Fields:29
CNN1/conv_W:0 (3, 3, 1, 196)=1764, CNN1/conv_B:0 196, CNN1/prelu/CNN1_prelu:0 196, CNN2/conv_W:0 (3, 3, 196, 166)=292824, CNN2/conv_B:0 166, CNN2/prelu/CNN2_prelu:0 166, CNN3/conv_W:0 (3, 3, 166, 148)=221112, CNN3/conv_B:0 148, CNN3/prelu/CNN3_prelu:0 148, CNN4/conv_W:0 (3, 3, 148, 133)=177156, CNN4/conv_B:0 133, CNN4/prelu/CNN4_prelu:0 133, CNN5/conv_W:0 (3, 3, 133, 120)=143640, CNN5/conv_B:0 120, CNN5/prelu/CNN5_prelu:0 120, CNN6/conv_W:0 (3, 3, 120, 108)=116640, CNN6/conv_B:0 108, CNN6/prelu/CNN6_prelu:0 108, CNN7/conv_W:0 (3, 3, 108, 97)=94284, CNN7/conv_B:0 97, CNN7/prelu/CNN7_prelu:0 97, CNN8/conv_W:0 (3, 3, 97, 86)=75078, CNN8/conv_B:0 86, CNN8/prelu/CNN8_prelu:0 86, CNN9/conv_W:0 (3, 3, 86, 76)=58824, CNN9/conv_B:0 76, CNN9/prelu/CNN9_prelu:0 76, CNN10/conv_W:0 (3, 3, 76, 66)=45144, CNN10/conv_B:0 66, CNN10/prelu/CNN10_prelu:0 66, CNN11/conv_W:0 (3, 3, 66, 57)=33858, CNN11/conv_B:0 57, CNN11/prelu/CNN11_prelu:0 57, CNN12/conv_W:0 (3, 3, 57, 48)=24624, CNN12/conv_B:0 48, CNN12/prelu/CNN12_prelu:0 48, A1/conv_W:0 (1, 1, 1301, 64)=83264, A1/conv_B:0 64, A1/prelu/A1_prelu:0 64, B1/conv_W:0 (1, 1, 1301, 32)=41632, B1/conv_B:0 32, B1/prelu/B1_prelu:0 32, B2/conv_W:0 (3, 3, 32, 32)=9216, B2/conv_B:0 32, B2/prelu/B2_prelu:0 32, Up-PS/Up-PS_CNN/conv_W:0 (3, 3, 96, 384)=331776, Up-PS/Up-PS_CNN/conv_B:0 384, R-CNN1/conv_W:0 (3, 3, 96, 1)=864,
Total 48 variables, 1,754,942 params
Model initialized.
Model restored [ models/dcscn_L12_F196to48_NIN_A64_PS_R1F32.ckpt ].
LoadError Traceback (most recent call last)
/content/dcscn-super-resolution/sr.py in ()
49
50 if name == 'main':
---> 51 tf.app.run()

5 frames
/content/dcscn-super-resolution/helper/utilty.py in load_image(filename, width, height, channels, alignment, print_console)
241 def load_image(filename, width=0, height=0, channels=0, alignment=0, print_console=True):
242 if not os.path.isfile(filename):
--> 243 raise LoadError("File not found [%s]" % filename)
244
245 try:

LoadError: File not found [train.JPG]

I have saved the image in the project folder and executed the following line of code
run sr.py --file=train.JPG
I am getting error as LoadError: File not found [train.JPG]

Kindly help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant