ayaderaghul commited on
Commit
c472e16
1 Parent(s): 764c7a4

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +4 -2
  2. g_model_AtoB_000540.h5 +3 -0
app.py CHANGED
@@ -7,12 +7,14 @@ import matplotlib.pyplot as plt
7
  import numpy as np
8
 
9
  cust = {'InstanceNormalization': InstanceNormalization}
10
- model=load_model('g_model_AtoB_002160.h5',cust)
 
 
11
  path = [['ex1.jpg'], ['ex2.jpg']]
12
 
13
  def show_preds_image(image_path):
14
  A = plt.imread(image_path)
15
- A = (A - 127.5) / 127.5
16
  A = np.expand_dims(A,axis=0)
17
  B = model.predict(A)
18
  B = np.squeeze(B,axis=0)
 
7
  import numpy as np
8
 
9
  cust = {'InstanceNormalization': InstanceNormalization}
10
+ # model=load_model('g_model_AtoB_002160.h5',cust)
11
+ model=load_model('g_model_AtoB_000540.h5',cust)
12
+
13
  path = [['ex1.jpg'], ['ex2.jpg']]
14
 
15
  def show_preds_image(image_path):
16
  A = plt.imread(image_path)
17
+ # A = (A - 127.5) / 127.5
18
  A = np.expand_dims(A,axis=0)
19
  B = model.predict(A)
20
  B = np.squeeze(B,axis=0)
g_model_AtoB_000540.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ad0952879f30273739e417543b75bcc5d04aa401d76e5a232dac7e8b78f31f3
3
+ size 141314344