IliaLarchenko
commited on
Commit
•
cc797bf
1
Parent(s):
d146066
fixed bug with p = 1.0
Browse files- src/app.py +1 -1
- src/utils.py +1 -1
- src/visuals.py +1 -1
src/app.py
CHANGED
@@ -35,7 +35,7 @@ transform = getattr(A, transform_name)(**param_values)
|
|
35 |
augmented_image = transform(image=image)["image"]
|
36 |
|
37 |
# show the params passed
|
38 |
-
st.text("Params passed:" + get_params_string(param_values))
|
39 |
st.text("Press R to update")
|
40 |
|
41 |
# show the images
|
|
|
35 |
augmented_image = transform(image=image)["image"]
|
36 |
|
37 |
# show the params passed
|
38 |
+
st.text("Params passed: " + get_params_string(param_values))
|
39 |
st.text("Press R to update")
|
40 |
|
41 |
# show the images
|
src/utils.py
CHANGED
@@ -35,6 +35,6 @@ def load_augmentations_config(
|
|
35 |
|
36 |
def get_params_string(param_values: dict) -> str:
|
37 |
params_string = ", ".join(
|
38 |
-
[k + "=" + str(param_values[k]) for k in param_values.keys()]
|
39 |
)
|
40 |
return params_string
|
|
|
35 |
|
36 |
def get_params_string(param_values: dict) -> str:
|
37 |
params_string = ", ".join(
|
38 |
+
[k + "=" + str(param_values[k]) for k in param_values.keys()]
|
39 |
)
|
40 |
return params_string
|
src/visuals.py
CHANGED
@@ -16,7 +16,7 @@ def select_image(path_to_images: str = "images"):
|
|
16 |
|
17 |
|
18 |
def show_transform_control(transform_params: dict):
|
19 |
-
param_values = {}
|
20 |
if len(transform_params) == 0:
|
21 |
st.sidebar.text("Transform has no parameters")
|
22 |
else:
|
|
|
16 |
|
17 |
|
18 |
def show_transform_control(transform_params: dict):
|
19 |
+
param_values = {'p': 1.0}
|
20 |
if len(transform_params) == 0:
|
21 |
st.sidebar.text("Transform has no parameters")
|
22 |
else:
|