-
Notifications
You must be signed in to change notification settings - Fork 18
MNIST noise overlaps signal #19
Copy link
Copy link
Open
Description
Hi,
when I create a dataset with make_mnist.py and size 500x500, I figured that noise is sometimes overlapping numbers.
This can be resolved by changing the order of signal/noise insertion, e.g. the high-dimensional image:
def high(self):
...
if self._dataset._should_add_noise:
for p, i in self.noise_positions_and_patterns:
high[self._get_slice(p)] = \
255*self._dataset._noise[i]
for p, i in zip(self._positions, self._idxs):
high[self._get_slice(p)] = \
255*self._dataset._images[i]
instead of
def high(self):
...
for p, i in zip(self._positions, self._idxs):
high[self._get_slice(p)] = \
255*self._dataset._images[I]
if self._dataset._should_add_noise:
for p, i in self.noise_positions_and_patterns:
high[self._get_slice(p)] = \
255*self._dataset._noise[i]
Let me know in case I missed something.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
