Skip to content

Commit 43ac80c

Browse files
committed
Pre commit fixes
1 parent b29ff58 commit 43ac80c

15 files changed

Lines changed: 18 additions & 18 deletions

sam-vit-base/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ You agree not to use the Model or Derivatives of the Model:
7979
- To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to that group in a manner that causes or is likely to cause that person or another person physical or psychological harm;
8080
- For any use intended to or which has the effect of discriminating against individuals or groups based on legally protected characteristics or categories;
8181
- To provide medical advice and medical results interpretation;
82-
- To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).
82+
- To generate or disseminate information for the purpose to be used for administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and arbitrarily-targeted use).

sam-vit-base/QNN/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ Execute SAM model in **AOT Compilation Python Environment** using following comm
6161

6262
```bash
6363
python sam_mask_generator.py --model_ve path/to/encoder_model.onnx --model_md path/to/decoder_model.onnx --image_path car.png --box_x 40 --box_y 235 --box_w 940 --box_h 490 --output_path car_mask.png
64-
```
64+
```

sam-vit-base/QNN/info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ recipes:
2222
devices:
2323
- npu
2424
ep: QNNExecutionProvider
25-
name: sam-vit-base
25+
name: sam-vit-base

sam-vit-base/QNN/model_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def _embed_points(self, points: torch.Tensor, labels: torch.Tensor, pad: bool) -
356356
point_embedding + self.model.point_embed[1].weight[None, None, :, :],
357357
point_embedding,
358358
)
359-
359+
360360
point_embedding = torch.where(
361361
(labels == 2)[:, :, :, None],
362362
point_embedding + self.model.point_embed[2].weight[None, None, :, :],

sam-vit-base/QNN/sam_mask_box_decoder_qnn_fp16.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
"target": "target_system",
8282
"cache_dir": "cache_olive_mask_box_decoder_fp16",
8383
"output_dir": "model/sam_olive_mask_box_decoder_fp16"
84-
}
84+
}

sam-vit-base/QNN/sam_mask_decoder_qnn_fp16_ctx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@
9393
"target": "target_system",
9494
"cache_dir": "cache_olive_mask_decoder_fp16",
9595
"output_dir": "model/sam_olive_mask_decoder_fp16"
96-
}
96+
}

sam-vit-base/QNN/sam_mask_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def main():
7878
print(f"Mask saved to {args.output_path}")
7979

8080
if __name__ == "__main__":
81-
main()
81+
main()

sam-vit-base/QNN/sam_mask_point_decoder_qnn_fp16.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
"target": "target_system",
8282
"cache_dir": "cache_olive_mask_point_decoder_fp16",
8383
"output_dir": "model/sam_olive_mask_point_decoder_fp16"
84-
}
84+
}

sam-vit-base/QNN/sam_vision_encoder_qnn_w8a8_ctx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@
116116
"target": "target_system",
117117
"cache_dir": "cache_olive_ve_w8a8_q100",
118118
"output_dir": "model/sam_olive_ve_w8a8_q100"
119-
}
119+
}

sam2.1-hiera-small/QNN/info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ recipes:
1313
- npu
1414
ep: QNNExecutionProvider
1515

16-
name: sam2.1-hiera-small
16+
name: sam2.1-hiera-small

0 commit comments

Comments
 (0)