[GH-ISSUE #12784] Image channel R and B seems to be flipped when using api/generate #70540

Closed
opened 2026-05-04 21:55:34 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @yotsuyasan on GitHub (Oct 26, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/12784

What is the issue?

I am using ollama 0.12.6 on Windows 11 with Nvidia Geforce RTX 4060ti.
When using gemma3:4b-it-qat or 12b-it-qat model through api/generate, image channel R and B seems to be flipped.

Through API, giving an image of red rectangle on gray background, and prompt "Answer color of rectangle"
returns "Solid blue".

  • Image: Red rectangle -> Answer: Blue rectangle
  • Image: Blue rectangle -> Answer: Red rectangle
  • Image: Green rectangle -> Answer: Green rectangle

This doesn't occur within chat through ollama.app or ollama CLI.

Relevant log output


OS

Windows

GPU

Nvidia

CPU

Intel

Ollama version

0.12.6

Originally created by @yotsuyasan on GitHub (Oct 26, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/12784 ### What is the issue? I am using ollama 0.12.6 on Windows 11 with Nvidia Geforce RTX 4060ti. When using gemma3:4b-it-qat or 12b-it-qat model through api/generate, image channel R and B seems to be flipped. Through API, giving an image of **red** rectangle on gray background, and prompt "Answer color of rectangle" returns "Solid **blue**". - Image: **Red** rectangle -> Answer: **Blue** rectangle - Image: **Blue** rectangle -> Answer: **Red** rectangle - Image: Green rectangle -> Answer: Green rectangle This doesn't occur within chat through ollama.app or ollama CLI. ### Relevant log output ```shell ``` ### OS Windows ### GPU Nvidia ### CPU Intel ### Ollama version 0.12.6
GiteaMirror added the bug label 2026-05-04 21:55:34 -05:00
Author
Owner

@yotsuyasan commented on GitHub (Oct 26, 2025):

Sorry I seems more to be bug on my code.

<!-- gh-comment-id:3448061406 --> @yotsuyasan commented on GitHub (Oct 26, 2025): Sorry I seems more to be bug on my code.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#70540