Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror authored Mar 27, 2024
1 parent 7286961 commit 832af2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MLStructFP_benchmarks/ml/model/core/_data_floor_photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def load_part(self, part: int, shuffle: bool = False, ignore_split: bool = False
else:
assert part in (1, 2), '1 returns train, 2 test. No other part value allowed'
# First, get all images size and create a numpy zero object
imgs = 0
imgs = 0 # Total images loaded so far
sizes: Dict[int, int] = {} # Size for each part
for i in self._split[part - 1]: # Iterate loaded parts
i_info = list(_npz_headers(self._get_file(i)[0]))[0] # ('data', (N, SIZE, SIZE), dtype('DTYPE'))
Expand All @@ -208,7 +208,7 @@ def load_part(self, part: int, shuffle: bool = False, ignore_split: bool = False

j = 0 # Index to add
k = 0 # Number of processed parts
for i in self._split[part - 1]: # Iterate train parts
for i in self._split[part - 1]: # Iterate loaded parts
f = self._get_file(i)
img_b[j:j + sizes[i]] = np.load(f[0])['data'] # Binary
img_p[j:j + sizes[i]] = np.load(f[1])['data'] # Photo
Expand Down

0 comments on commit 832af2a

Please sign in to comment.