Denys Rozumnyi commited on
Commit
c336685
·
1 Parent(s): 8e9ccdc
Files changed (1) hide show
  1. geom_solver.py +3 -3
geom_solver.py CHANGED
@@ -11,12 +11,12 @@ from hoho.color_mappings import gestalt_color_mapping
11
  from PIL import Image
12
 
13
  def my_empty_solution():
14
- return np.zeros((18,3)), [(0, 0)]
15
 
16
 
17
  def cheat_the_metric_solution(vertices=None):
18
  if vertices is None:
19
- nverts = 20
20
  vertices_new = np.zeros((nverts,3))
21
  else:
22
  nverts = vertices.shape[0]
@@ -31,7 +31,7 @@ class GeomSolver(object):
31
 
32
  def __init__(self):
33
  self.min_vertices = 10
34
- self.mean_vertices = 20
35
  self.max_vertices = 30
36
  self.kmeans_th = 200
37
  self.point_dist_th = 50
 
11
  from PIL import Image
12
 
13
  def my_empty_solution():
14
+ return np.zeros((19,3)), [(0, 0)]
15
 
16
 
17
  def cheat_the_metric_solution(vertices=None):
18
  if vertices is None:
19
+ nverts = 19
20
  vertices_new = np.zeros((nverts,3))
21
  else:
22
  nverts = vertices.shape[0]
 
31
 
32
  def __init__(self):
33
  self.min_vertices = 10
34
+ self.mean_vertices = 19
35
  self.max_vertices = 30
36
  self.kmeans_th = 200
37
  self.point_dist_th = 50