Skip to content

Commit

Permalink
Update test_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
onlineplay authored Feb 17, 2021
1 parent 51546bc commit 9ea9ce8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
i = 0

for x,fileName in enumerate(images_path):
#fileName = fileRoot + str(x) + "_out_Similarity.jpg"
print(fileName)
print('Input file:',fileName)
mat_img = cv2.imread(fileName)
mat_img = cv2.resize(mat_img, (512, 512), interpolation=cv2.INTER_CUBIC)
mat_img = cv2.cvtColor(mat_img, cv2.COLOR_RGB2BGR)
Expand All @@ -43,6 +42,8 @@

combine_model.predict_shadow(mat_img)

cv2.imwrite('ori'+ str(x) +'.jpg',cv2.cvtColor(combine_model.generated, cv2.COLOR_BGR2RGB))
output_file = 'ori'+ str(x) +'.jpg'
print('Output file:',output_file)
cv2.imwrite(output_file,cv2.cvtColor(combine_model.generated, cv2.COLOR_BGR2RGB))
i = i + 1
jt.gc()

0 comments on commit 9ea9ce8

Please sign in to comment.