Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Update iterator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored Jan 19, 2017
1 parent eaae080 commit 571b9a4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions example/ssd/dataset/iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ def __init__(self, imdb, batch_size, data_shape, \
if isinstance(data_shape, int):
data_shape = (data_shape, data_shape)
self._data_shape = data_shape
if isinstance(mean_pixels, list):
self._mean_pixels = mx.nd.Reshape(
mx.nd.array(mean_pixels),
shape = (3,1,1))
else:
self._mean_pixels = mean_pixels
self._mean_pixels = mx.nd.array(mean_pixels).reshape((3,1,1))
if not rand_samplers:
self._rand_samplers = []
else:
Expand Down

0 comments on commit 571b9a4

Please sign in to comment.