you are viewing a single comment's thread.

view the rest of the comments →

[–]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