Spaces:
Running
Running
yizhangliu
commited on
Commit
•
b3c6cb3
1
Parent(s):
7e3a73d
Update app.py
Browse files
app.py
CHANGED
@@ -214,6 +214,7 @@ def model_process(input):
|
|
214 |
res_np_img = np.concatenate(
|
215 |
(res_np_img, alpha_channel[:, :, np.newaxis]), axis=-1
|
216 |
)
|
|
|
217 |
print(f"process time_2_: {(time.time() - start) * 1000}ms, {alpha_channel.shape}, {res_np_img.shape} / {res_np_img[250][250]} / {res_np_img.dtype}")
|
218 |
image = Image.fromarray(res_np_img.astype(np.uint8))
|
219 |
image.save(f'./result_image.png')
|
|
|
214 |
res_np_img = np.concatenate(
|
215 |
(res_np_img, alpha_channel[:, :, np.newaxis]), axis=-1
|
216 |
)
|
217 |
+
print(f"liuyz_here_40_: {alpha_channel.shape} / {res_np_img.shape} / {alpha_channel.dtype} / {res_np_img.dtype}")
|
218 |
print(f"process time_2_: {(time.time() - start) * 1000}ms, {alpha_channel.shape}, {res_np_img.shape} / {res_np_img[250][250]} / {res_np_img.dtype}")
|
219 |
image = Image.fromarray(res_np_img.astype(np.uint8))
|
220 |
image.save(f'./result_image.png')
|