text: Title: tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/F_2_2/kernel)
  Body: ```
  from PIL import Image
  import numpy as np
  import tensorflow as tf
  from .models import RDN
  from .models import RRDN
  
  global gra
  global rrdn
  global rdn
  
  # gra = tf.Graph()
  rrdn = RRDN(weights='gans')
  rdn = RDN(weights='psnr-large')
  gra = tf.get_default_graph()
  
  # g = tf.Session(graph=graph)
  
  def get_gan_output(img_path, by_patch_of_size=50):
      img = Image.open(img_path).convert("RGB")
      lr_img = np.array(img)
      with gra.as_default():
          sr_img = rrdn.predict(lr_img, by_patch_of_size=50)
      return sr_img
  
  def get_2x_output(img_path, by_patch_of_size=50):
      img = Image.open(img_path).convert("RGB")
      lr_img = np.array(img)
      with gra.as_default():
          sr_img = rdn.predict(lr_img, by_patch_of_size=50)
      return sr_img
  ```
  
  Calling any of these function from a different .py file causes the error. File 
  
  ```
  "D:\data\deep_learning_projects\app\projects\main\service\superresolution\get_output.py", line 29, in get_2x_output
      sr_img = rdn.predict(lr_img, by_patch_of_size=50)
    File "D:\data\deep_learning_projects\venv\lib\site-packages\ISR\models\imagemodel.py", line 41, in predict
      batch = self.model.predict(patches[i: i + batch_size])
    File "D:\data\deep_learning_projects\venv\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 908, in predict    
      use_multiprocessing=use_multiprocessing)
    File "D:\data\deep_learning_projects\venv\lib\site-packages\tensorflow_core\python\keras\engine\training_arrays.py", line 723, in predict
      callbacks=callbacks)
    File "D:\data\deep_learning_projects\venv\lib\site-packages\tensorflow_core\python\keras\engine\training_arrays.py", line 394, in model_iteration
      batch_outs = f(ins_batch)
    File "D:\data\deep_learning_projects\venv\lib\site-packages\tensorflow_core\python\keras\backend.py", line 3476, in __call__
      run_metadata=self.run_metadata)
    File "D:\data\deep_learning_projects\venv\lib\site-packages\tensorflow_core\python\client\session.py", line 1472, in __call__
      run_metadata_ptr)
  tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable F_2_2/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/F_2_2/kernel)
           [[{{node F_2_2/Conv2D/ReadVariableOp}}]]
  ```
  
  I am running this in tensorflow 1.15.0. But this is running perfectly in colab even in case of 1.15.0 but not running on local system.