mirror of
https://github.com/ollama/ollama.git
synced 2026-04-27 19:25:55 +02:00
fix: patch merger and convert
convert: - split patch embedding - split qkv remove duplicate PatchMerger
This commit is contained in:
committed by
Bruce MacDonald
parent
dd8c619fba
commit
7e920c8d75
@@ -26,13 +26,12 @@ type ImageProcessor struct {
|
||||
|
||||
// newImageProcessor creates a new image processor with default values
|
||||
func newImageProcessor(c fs.Config) ImageProcessor {
|
||||
|
||||
patchSize := int(c.Uint("vision.patch_size", 14))
|
||||
mergeSize := int(c.Uint("vision.spatial_merge_size", 2))
|
||||
|
||||
return ImageProcessor{
|
||||
imageSize: int(c.Uint("vision.image_size", 560)),
|
||||
numChannels: 3,
|
||||
numChannels: int(c.Uint("vision.num_channels", 3)), // not set
|
||||
patchSize: patchSize,
|
||||
temporalPatchSize: 2,
|
||||
mergeSize: mergeSize,
|
||||
|
||||
Reference in New Issue
Block a user