diff options
author | M. Yusuf Sarıgöz <yusufsarigoz@gmail.com> | 2023-11-13 18:20:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 18:20:52 +0300 |
commit | bd90eca237b498dd106d315dcb9ad3e6fae3906f (patch) | |
tree | 3100f76135db7037f6d0537ecae929e6be68aa16 /examples/llava | |
parent | 3d68f364f15778dc326f5024f2e5af1ad6dfddef (diff) |
llava : fix regression for square images in #3613 (#4056)
Diffstat (limited to 'examples/llava')
-rw-r--r-- | examples/llava/clip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index c26ee495..fc0656c2 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -761,7 +761,7 @@ bool clip_image_preprocess(const clip_ctx * ctx, const clip_image_u8 * img, clip temp->ny = img->ny; temp->size = img->size; temp->data = new uint8_t[temp->size](); - *temp->data = *img->data; // copy + memcpy(&temp->data[0], &img->data[0], temp->size); // copy } const int nx = temp->nx; |