mirror of
https://github.com/igv/FSRCNN-TensorFlow.git
synced 2026-02-05 22:52:08 +08:00
tensorflow v2 compat
This commit is contained in:
2
CSFM.py
2
CSFM.py
@@ -1,4 +1,4 @@
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
from utils import gradient_sensitive_loss, tf_ms_ssim
|
||||
|
||||
class Model(object):
|
||||
|
||||
2
ESPCN.py
2
ESPCN.py
@@ -1,4 +1,4 @@
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
from utils import gradient_sensitive_loss, tf_ms_ssim
|
||||
|
||||
class Model(object):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
from utils import gradient_sensitive_loss, tf_ms_ssim
|
||||
|
||||
class Model(object):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
import math
|
||||
from utils import bilinear_upsample_weights, bicubic_downsample
|
||||
|
||||
|
||||
2
main.py
2
main.py
@@ -1,7 +1,7 @@
|
||||
from model import Model
|
||||
|
||||
import numpy as np
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
import pprint
|
||||
import os
|
||||
|
||||
2
model.py
2
model.py
@@ -12,7 +12,7 @@ import importlib
|
||||
from random import randrange
|
||||
|
||||
import numpy as np
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
|
||||
from PIL import Image
|
||||
import pdb
|
||||
|
||||
Reference in New Issue
Block a user