Skip to content

Commit a767fba

Browse files
fixed the issue of eps_dilatewin
1 parent d44ae2e commit a767fba

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/mintflow/utils_pyg.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,14 @@ def __iter__(self):
5151
yield batch
5252

5353
@torch.no_grad()
54-
def _get_batchlist(self, eps_dilatewin=10.0):
54+
def _get_batchlist(self):
5555
'''
5656
Places a grid on the xy position with a random offset.
5757
If the window is non-empty, it creates a batch for it.
5858
'''
59+
60+
eps_dilatewin = 0.0
61+
5962
if not self.flag_disable_randoffset:
6063
offset_x, offset_y = int(np.random.rand() * self.width_window), int(np.random.rand() * self.width_window)
6164
else:
@@ -100,11 +103,14 @@ def _get_batchlist(self, eps_dilatewin=10.0):
100103
return list_batch
101104

102105
@torch.no_grad()
103-
def get_maxnumpoints_insquare(self, eps_dilatewin=10.0):
106+
def get_maxnumpoints_insquare(self):
104107
'''
105108
Computes the maximal number of cells within any window.
106109
The idea is that it puts the corner of a window on each cell position and reports the maximum number.
107110
'''
111+
112+
eps_dilatewin = 0.0
113+
108114
max_numpoints = -np.inf
109115
for n in tqdm(range(self.ten_xy.size()[0])):
110116
x, y = self.ten_xy[n, 0].detach().cpu().numpy().tolist(), self.ten_xy[

0 commit comments

Comments
 (0)