mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
resize image width 1 ><
This commit is contained in:
parent
59e356730f
commit
54d761cf9e
@ -591,7 +591,7 @@ image resize_image(image im, int w, int h)
|
||||
for(r = 0; r < im.h; ++r){
|
||||
for(c = 0; c < w; ++c){
|
||||
float val = 0;
|
||||
if(c == w-1){
|
||||
if(c == w-1 || im.w == 1){
|
||||
val = get_pixel(im, im.w-1, r, k);
|
||||
} else {
|
||||
float sx = c*w_scale;
|
||||
|
Loading…
Reference in New Issue
Block a user