We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b5981 commit bac86a5Copy full SHA for bac86a5
photo_smooth.py
@@ -18,8 +18,8 @@ def __init__(self, beta=0.9999):
18
self.beta = beta
19
20
def process(self, initImg, contentImg):
21
- content = scipy.misc.imread(contentImg)
22
- B = scipy.misc.imread(initImg).astype(np.float64)/255
+ content = scipy.misc.imread(contentImg, mode='RGB')
+ B = scipy.misc.imread(initImg, mode='RGB').astype(np.float64)/255
23
h1,w1,k = B.shape
24
h = h1 - 4
25
w = w1 - 4
0 commit comments