KJMAN678 commited on
Commit
e2b973a
1 Parent(s): bab65cb

試行回数の進捗表示を追加

Browse files
Files changed (1) hide show
  1. bul_image_maker.py +3 -2
bul_image_maker.py CHANGED
@@ -2,6 +2,7 @@ import random
2
 
3
  import matplotlib.pyplot as plt
4
  import numpy as np
 
5
 
6
 
7
  def bul_image_maker(height: int, width: int, times: int) -> None:
@@ -20,12 +21,12 @@ def bul_image_maker(height: int, width: int, times: int) -> None:
20
 
21
  coef_list = [random.choice([-1, 1]) for i in range(times)]
22
 
23
- result = np.zeros((height, width, 3))
24
-
25
  im = np.zeros((height, width))
26
 
27
  for time in range(times):
28
 
 
 
29
  H_start = random.randint((random.randint(1, H - 3)), H - 2)
30
  H_end = H_start
31
  W_start = random.randint(random.randint(1, W - 3), W - 2)
 
2
 
3
  import matplotlib.pyplot as plt
4
  import numpy as np
5
+ import streamlit as st
6
 
7
 
8
  def bul_image_maker(height: int, width: int, times: int) -> None:
 
21
 
22
  coef_list = [random.choice([-1, 1]) for i in range(times)]
23
 
 
 
24
  im = np.zeros((height, width))
25
 
26
  for time in range(times):
27
 
28
+ st.write(f"{time}/times")
29
+
30
  H_start = random.randint((random.randint(1, H - 3)), H - 2)
31
  H_end = H_start
32
  W_start = random.randint(random.randint(1, W - 3), W - 2)