Re: multidimensional ndarray indexing issues

2018-02-16 Thread Corston-Oliver, Simon
The dev email list is mostly used for internal discussion about features etc. 
Could you please post this on the discussion forum: https://discuss.mxnet.io. 
You'll be much more likely to get a response from the community there.

On 2/12/18, 11:24 AM, "Watts 2"  wrote:

I am new to mxnet. I am assuming this is the right place to ask a
programming question. If yes, please see below. If no, please point me to
the right forum.

Thanks

My question -


I just installed mxnet 1.0.0 (later downgraded to 0.12.1 but still same
problem) and python 3.5 on a Ubuntu 14.04 machine with CUDA 8.0 and cudnn
7.0.5.

I am trying to load image data into ndarray.

My code is given below. I am trying to store image data in an ndarray. (see
https://github.com/ypwhs/DogBreed_gluon/blob/master/get_features_v3.ipynb 
for
the original code) -

X_224 = nd.zeros((n, 3, 224, 224))
X_299 = nd.zeros((n, 3, 299, 299))

mean = np.array([0.485, 0.456, 0.406])
std = np.array([0.229, 0.224, 0.225])

for i, (fname, breed) in tqdm(df.iterrows(), total=n):
img = cv2.imread('data/train/%s.jpg' % fname)
img_224 = ((cv2.resize(img, (224, 224))[:, :, ::-1] / 255.0 -
mean) / std).transpose((2, 0, 1))
img_299 = ((cv2.resize(img, (299, 299))[:, :, ::-1] / 255.0 -
mean) / std).transpose((2, 0, 1))

X_224[i] = nd.array(img_224) <-- I get error in this line
X_299[i] = nd.array(img_299)

ValueError: Indexing NDArray with index=0 and type=class 'numpy.int64' is
not supported.




Re: Regarding joining slack channel

2018-02-16 Thread Pedro Larroy
https://gitter.im/dmlc/mxnet

I think neither in Slack or Gitter we are doing a good job of building
community. There's a lot of questions and people interested and too
much silence, even we all are pretty busy I think it would be good to
get a bit more in touch with our users.

On Thu, Feb 15, 2018 at 5:45 PM, Sebastian  wrote:
> It took us quite some effort to move everyone to the ASF supported slack
> channel, so I don't see the point of moving away from that.
>
> -s
>
>
> On 15.02.2018 13:26, Pedro Larroy wrote:
>>
>> What's the situation with slack vs gitter?  Should we just move all
>> the discussion to gitter? there was never any significant traffic in
>> the slack channel anyway.
>>
>> On Mon, Feb 5, 2018 at 10:20 PM, Chris Olivier 
>> wrote:
>>>
>>> invited
>>>
>>> On Mon, Feb 5, 2018 at 1:10 PM, Chen HY  wrote:
>>>
 Hi there,

 I am just wondering whether it is possible to join slack and to
 participate in development.

 Thanks
 Hanyang

>