ajflorez commited on
Commit
5bc9e8f
·
verified ·
1 Parent(s): 8d6988a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -16
app.py CHANGED
@@ -61,8 +61,8 @@ def load_plan_vi(mapa_seleccionado, uploaded_file):
61
 
62
  plan_im = Image.open(buf)
63
 
64
- tick_positions = np.linspace(0, 256, 15)
65
- tick_labels = np.linspace(0, 20, 15, dtype=int)
66
 
67
  buf = BytesIO()
68
  plt.imshow(plan_n)
@@ -571,6 +571,16 @@ with gr.Blocks() as demo:
571
  """
572
  ## Fast Indoor Radio Propagation Prediction using Deep Learning
573
  This app uses deep learning models for radio map estimation (RME) with and without interference, simulating 2.4 GHz and 5 GHz bands. RME involves estimating the received RF power based on spatial information maps.
 
 
 
 
 
 
 
 
 
 
574
  """
575
  )
576
 
@@ -631,18 +641,4 @@ with gr.Blocks() as demo:
631
  coords_ch1_input, coords_ch6_input, coords_ch11_input],
632
  outputs=[image_ch1, image_ch6, image_ch11, image_ap1, image_ap2, image_cover_final, image_cells])
633
 
634
- gr.Markdown(
635
- """
636
- Instructions for use:
637
-
638
- - A predefined list of indoor floor plans is available for use.
639
- - You can upload your own indoor floor plan.
640
- - Negative numbers are not allowed.
641
- - The established format for the coordinates of each access point (AP) must be followed.
642
- - A maximum of 2 APs per channel is allowed for the interference case.
643
- - A maximum of 5 APs is allowed for the non-interference case.
644
- - The uploaded plan must meet the dimensions [256,256,3], with free spaces as white pixels and walls as black pixels.
645
- """
646
- )
647
-
648
  demo.launch()
 
61
 
62
  plan_im = Image.open(buf)
63
 
64
+ tick_positions = np.linspace(0, 256, 20)
65
+ tick_labels = np.linspace(0, 20, 20, dtype=int)
66
 
67
  buf = BytesIO()
68
  plt.imshow(plan_n)
 
571
  """
572
  ## Fast Indoor Radio Propagation Prediction using Deep Learning
573
  This app uses deep learning models for radio map estimation (RME) with and without interference, simulating 2.4 GHz and 5 GHz bands. RME involves estimating the received RF power based on spatial information maps.
574
+
575
+ Instructions for use:
576
+
577
+ - A predefined list of indoor floor plans is available for use.
578
+ - You can upload your own indoor floor plan.
579
+ - Negative numbers are not allowed.
580
+ - The established format for the coordinates of each access point (AP) must be followed.
581
+ - A maximum of 2 APs per channel is allowed for the interference case.
582
+ - A maximum of 5 APs is allowed for the non-interference case.
583
+ - The uploaded plan must meet the dimensions [256,256,3], with free spaces as white pixels and walls as black pixels.
584
  """
585
  )
586
 
 
641
  coords_ch1_input, coords_ch6_input, coords_ch11_input],
642
  outputs=[image_ch1, image_ch6, image_ch11, image_ap1, image_ap2, image_cover_final, image_cells])
643
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
644
  demo.launch()