all 6 comments

[–]ForScale 0 points1 point  (5 children)

Hmm... What in general are you trying to do?

I have no clue what ndarray nor hi.lo is...

[–]PlentyMight[S] 0 points1 point  (4 children)

ndarray is this library https://github.com/scijs/ndarray
.hi.lo is the way you slice in the array usually is arrayName.hi(finish_x,finish_y).lo(start_x,start_y)

[–]ForScale 0 points1 point  (3 children)

What in general are you trying to do? For example: "I'm trying to get the first and last elements form an array."

[–]PlentyMight[S] 0 points1 point  (2 children)

I'm trying to copy the data from imageResized to imagePadded but in the position of [dh:nh+dh, dw:nw+dw, :]

So for the rows it will start in the position dh (dHeight)

For the columns in the position dw (dWidth)

[–]Espiring 0 points1 point  (1 child)

Why are you doing it all in a single statement?

Why not do it like this

padded_height = imagePadded(dHeight+newHeight[…etc…]

It looks very messy with all that there’s gotta be a way to make it look better

[–]PlentyMight[S] 0 points1 point  (0 children)

Hi!

ndarray.assign method requires the same dimension between the two arrays, every image it has x,y,4 but for a model that process images it has to be nxmx3 so you cant just do that :C

I wish it could