Commit fdf2ddab authored by lucas_miranda's avatar lucas_miranda
Browse files

Updated DockerFile to use a specific tag in the FROM command

parent f05b62df
Pipeline #96944 passed with stages
in 19 minutes and 6 seconds
......@@ -287,7 +287,9 @@ class neighbor_latent_entropy(tf.keras.callbacks.Callback):
with writer.as_default():
tf.summary.scalar(
"average_neighborhood_cluster_entropy",
data=np.average(purity_vector),#, weights=max_groups[random_idxs]),
data=np.average(
purity_vector
), # , weights=max_groups[random_idxs]),
step=epoch,
)
tf.summary.scalar(
......
......@@ -556,13 +556,13 @@ def circular_arena_recognition(frame: np.array) -> np.array:
# Convert image to greyscale, threshold it, blur it and apply open-close operations
gray_image = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
ret, thresh = cv2.threshold(gray_image, 90, 255, 0)
ret, thresh = cv2.threshold(gray_image, 255 // 2, 255, 0)
frame = cv2.medianBlur(thresh, 9)
frame = cv2.morphologyEx(
frame, cv2.MORPH_CLOSE, cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (80, 80))
frame, cv2.MORPH_CLOSE, cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (50, 50))
)
frame = cv2.morphologyEx(
frame, cv2.MORPH_OPEN, cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (80, 80))
frame, cv2.MORPH_OPEN, cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (50, 50))
)
# Find contours in the processed image
......
......@@ -121,7 +121,7 @@ def test_climb_wall(center, axes, angle, tol):
climb_wall("", arena, prun["test"], tol1, nose="Nose")
@settings(deadline=None)
@settings(deadline=None, suppress_health_check=[HealthCheck.too_slow])
@given(
pos_dframe=data_frames(
index=range_indexes(min_size=5),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment