mirror of
https://github.com/ollama/ollama.git
synced 2025-04-12 21:59:22 +02:00
Update model.go
This commit is contained in:
parent
733630a491
commit
34fb382af9
@ -2,7 +2,6 @@ package qwen25vl
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/ollama/ollama/kvcache"
|
||||
@ -51,7 +50,7 @@ func (m *Model) EncodeMultimodal(ctx ml.Context, multimodalData []byte) (any, er
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pixelValues, err := ctx.Input().FromFloatSlice(f32s,
|
||||
_, err = ctx.Input().FromFloatSlice(f32s,
|
||||
m.ImageProcessor.imageSize,
|
||||
m.ImageProcessor.imageSize,
|
||||
m.ImageProcessor.numChannels,
|
||||
@ -60,8 +59,6 @@ func (m *Model) EncodeMultimodal(ctx ml.Context, multimodalData []byte) (any, er
|
||||
return nil, err
|
||||
}
|
||||
|
||||
fmt.Println("pixelValues", pixelValues)
|
||||
|
||||
return nil, nil
|
||||
|
||||
// visionOutputs := m.VisionModel.Forward(ctx, pixelValues)
|
||||
|
Loading…
x
Reference in New Issue
Block a user