Beasto commited on
Commit
db038b3
·
verified ·
1 Parent(s): 82852c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -3
app.py CHANGED
@@ -154,13 +154,18 @@ if selected == 'Tools and Experience':
154
 
155
  elif selected == 'Projects':
156
  st.header('Projects')
157
- st.write('I have made more than 50 projects in fields including Cnn, Gan, Machine Learning, Yolo object detection and segmentation, Pix2pix, Cyclegan and more')
158
  st.write('Below are some models(one from each category)')
159
 
160
- options = {'Cyclegan':1, 'DCGAN':2,'YOLO Segmentation':3,'Unet':4,'Machine Learning Text classifier':5}
161
  selected_option = st.selectbox('Select an option', options)
162
 
163
  if selected_option == 'Unet':
 
 
 
 
 
164
  imgs = img_prep(['unet1.jpg','unet2.jpg'])
165
  col1,col2 = st.columns(2)
166
  with col1:
@@ -177,6 +182,12 @@ elif selected == 'Projects':
177
 
178
 
179
  if selected_option == 'Cyclegan':
 
 
 
 
 
 
180
  imgs = img_prep(['cyclegan1.jpg','cyclegan2.jpg'])
181
  col1,col2 = st.columns(2)
182
  with col1:
@@ -196,6 +207,8 @@ elif selected == 'Projects':
196
  st.header('Description')
197
  st.write('This is a DCGAN model that turns a random noise vector into an Image of a dog(that sometimes turns out disformed) using Convolutional2D Transpose layers')
198
  st.header('Architecture')
 
 
199
  model = tf.keras.models.load_model('Portfolio Projects/doggen3.h5')
200
 
201
  # Create a button
@@ -209,5 +222,9 @@ elif selected == 'Projects':
209
  pred = pred * 0.5 + 0.5 # Normalize the pixel values
210
  pred = np.squeeze(pred) # Remove singleton dimensions if any
211
  st.image(pred,use_column_width=True)
 
 
 
212
  else:
213
- st.write(selected)
 
 
154
 
155
  elif selected == 'Projects':
156
  st.header('Projects')
157
+ st.write('I have made more than 50 projects in fields including CNN, GAN, Machine Learning, Yolo object detection and segmentation, Pix2pix, Cyclegan and more')
158
  st.write('Below are some models(one from each category)')
159
 
160
+ options = {'Cyclegan':1, 'DCGAN':2,'YOLO Segmentation':3,'Machine Learning Text classifier':4}
161
  selected_option = st.selectbox('Select an option', options)
162
 
163
  if selected_option == 'Unet':
164
+ st.header('Description')
165
+ st.write('This is a UNET model that segments the waterbodies in the image')
166
+ st.header('Architecture')
167
+ st.write('The model is of unet architecture to preserve the spatial informations in the images after applying Conv2D')
168
+
169
  imgs = img_prep(['unet1.jpg','unet2.jpg'])
170
  col1,col2 = st.columns(2)
171
  with col1:
 
182
 
183
 
184
  if selected_option == 'Cyclegan':
185
+ st.header('Description')
186
+ st.write('This is a CycleGAN model that turns an input image into an Image of a Monet Painting')
187
+ st.header('Architecture')
188
+ st.write('The Generator model is the prebuild tensorflow pix2pix generator model')
189
+ st.write('The Discriminator model is the discriminator model from the same module')
190
+
191
  imgs = img_prep(['cyclegan1.jpg','cyclegan2.jpg'])
192
  col1,col2 = st.columns(2)
193
  with col1:
 
207
  st.header('Description')
208
  st.write('This is a DCGAN model that turns a random noise vector into an Image of a dog(that sometimes turns out disformed) using Convolutional2D Transpose layers')
209
  st.header('Architecture')
210
+ st.write('The Generator model is just a set of Convolutional2D Transpose, BatchNormalization and Leaky relu')
211
+ st.write('The Discriminator model is a very simple model with Convolutional2D, Dropout and Leaky Relu')
212
  model = tf.keras.models.load_model('Portfolio Projects/doggen3.h5')
213
 
214
  # Create a button
 
222
  pred = pred * 0.5 + 0.5 # Normalize the pixel values
223
  pred = np.squeeze(pred) # Remove singleton dimensions if any
224
  st.image(pred,use_column_width=True)
225
+
226
+ st.write('To see other projects, You can Visit my profile on HuggingFace')
227
+ st.link_button('\n \t \t \t HuggingFace Account \t \t \r \n','https://huggingface.co/Beasto')
228
  else:
229
+ st.header('Contact me')
230
+