Skip to content

Commit

Permalink
Fix zero-shot-object-detection percentage option (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenova authored Dec 6, 2023
1 parent c0c746b commit d318b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -1989,7 +1989,7 @@ export class ZeroShotObjectDetectionPipeline extends Pipeline {
const toReturn = [];
for (let i = 0; i < images.length; ++i) {
const image = images[i];
const imageSize = [[image.height, image.width]];
const imageSize = percentage ? null : [[image.height, image.width]];
const pixel_values = model_inputs.pixel_values[i].unsqueeze_(0);

// Run model with both text and pixel inputs
Expand Down

0 comments on commit d318b1f

Please sign in to comment.