Satyam Gupta commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,7 +142,7 @@ with st.spinner('LOADING'):
|
|
| 142 |
im = im.resize((450, 450))
|
| 143 |
with st.container():
|
| 144 |
st.write(f'Total Principal Components : {min(img_array.shape[0], img_array.shape[1])}')
|
| 145 |
-
st.write(f'Compression Ratio: {100*(reduced_size_r+reduced_size_g+reduced_size_b)/(orig_size_r+orig_size_g+orig_size_b)}')
|
| 146 |
caption_li=['Original Image','All three channels Reconstruction Loss' ,f'Reconstructed Image with {no_of_comp} components']
|
| 147 |
images = [new_image, im ,recon_color_img]
|
| 148 |
st.image(images, caption=caption_li, width=400)
|
|
|
|
| 142 |
im = im.resize((450, 450))
|
| 143 |
with st.container():
|
| 144 |
st.write(f'Total Principal Components : {min(img_array.shape[0], img_array.shape[1])}')
|
| 145 |
+
#st.write(f'Compression Ratio: {100*(reduced_size_r+reduced_size_g+reduced_size_b)/(orig_size_r+orig_size_g+orig_size_b)}')
|
| 146 |
caption_li=['Original Image','All three channels Reconstruction Loss' ,f'Reconstructed Image with {no_of_comp} components']
|
| 147 |
images = [new_image, im ,recon_color_img]
|
| 148 |
st.image(images, caption=caption_li, width=400)
|