Download Fixed Edsr-x3.pb -
The EDSR architecture [1], known for removing batch normalization layers for better performance, is widely used for upscaling images by factors of 2, 3, and 4. The x3 variant performs 3× super-resolution. However, naively converted .pb files often contain hardcoded input dimensions or broken rescaling nodes. The "fixed" version corrects these issues, accepting variable input sizes and properly outputting RGB images.
import tensorflow as tf import cv2 import numpy as np def load_pb(model_path): with tf.io.gfile.GFile(model_path, 'rb') as f: graph_def = tf.compat.v1.GraphDef() graph_def.ParseFromString(f.read()) with tf.Graph().as_default() as graph: tf.import_graph_def(graph_def, name='') return graph Download Fixed Edsr-x3.pb
graph = load_pb('EDSR_x3.pb') input_tensor = graph.get_tensor_by_name('input:0') output_tensor = graph.get_tensor_by_name('output:0') lr = cv2.imread('lowres.png') # shape (H, W, 3) lr = cv2.cvtColor(lr, cv2.COLOR_BGR2RGB) lr_input = np.expand_dims(lr, 0) # (1, H, W, 3) Run inference with tf.compat.v1.Session(graph=graph) as sess: sr = sess.run(output_tensor, feed_dict={input_tensor: lr_input}) sr = np.squeeze(sr, 0) # (H 3, W 3, 3) The EDSR architecture [1], known for removing batch
[1] Lim, B., et al. "Enhanced deep residual networks for single image super-resolution." CVPRW 2017. [2] TensorFlow Model Export Guide – SavedModel to .pb. [2] TensorFlow Model Export Guide – SavedModel to
cv2.imwrite('superres.png', cv2.cvtColor(sr, cv2.COLOR_RGB2BGR))
Abstract The Enhanced Deep Super-Resolution (EDSR) network remains a benchmark for single-image super-resolution (SISR). For deployment in production environments, the model is often converted to the TensorFlow .pb (protobuf) format. This note addresses the specific task of downloading the fixed EDSR-x3.pb model—a version with resolved tensor naming issues and shape inference bugs common in early exports. We provide the correct download source, verification steps, and a minimal code example for inference.
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Price subject to change.
Subscription details below.*
Automatically renews, unless the renewal is cancelled. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to 2 x annual renewal price of #cma_promo_renewal_price# / year. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the first #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the first 2 year price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to 2 x annual renewal price of #cma_promo_renewal_price# / year. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the first #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the 1st #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the first #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the 1st #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
#cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.
#cma_promo_price# — #cma_promo_saved_price# off the first 2 year price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.
#cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.