Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: pytorch
|
| 3 |
+
license: other
|
| 4 |
+
tags:
|
| 5 |
+
- real_time
|
| 6 |
+
- android
|
| 7 |
+
pipeline_tag: image-segmentation
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+

|
| 12 |
+
|
| 13 |
+
# BGNet: Optimized for Mobile Deployment
|
| 14 |
+
## Segment images in real-time on device
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
BGNet or Boundary-Guided Network, is a model designed for camouflaged object detection. It leverages edge semantics to enhance the representation learning process, making it more effective at identifying objects that blend into their surroundings
|
| 18 |
+
|
| 19 |
+
This model is an implementation of BGNet found [here](https://github.com/thograce/bgnet).
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
More details on model performance across various devices, can be found [here](https://aihub.qualcomm.com/models/bgnet).
|
| 23 |
+
|
| 24 |
+
### Model Details
|
| 25 |
+
|
| 26 |
+
- **Model Type:** Semantic segmentation
|
| 27 |
+
- **Model Stats:**
|
| 28 |
+
- Model checkpoint: BGNet
|
| 29 |
+
- Input resolution: 416x416
|
| 30 |
+
- Number of parameters: 77.8M
|
| 31 |
+
- Model size: 297 MB
|
| 32 |
+
|
| 33 |
+
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 34 |
+
|---|---|---|---|---|---|---|---|---|
|
| 35 |
+
| BGNet | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 22.787 ms | 0 - 18 MB | FP16 | NPU | -- |
|
| 36 |
+
| BGNet | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 19.881 ms | 2 - 5 MB | FP16 | NPU | -- |
|
| 37 |
+
| BGNet | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 24.125 ms | 1 - 159 MB | FP16 | NPU | -- |
|
| 38 |
+
| BGNet | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 16.802 ms | 7 - 243 MB | FP16 | NPU | -- |
|
| 39 |
+
| BGNet | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 14.693 ms | 2 - 23 MB | FP16 | NPU | -- |
|
| 40 |
+
| BGNet | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 17.726 ms | 4 - 85 MB | FP16 | NPU | -- |
|
| 41 |
+
| BGNet | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 15.382 ms | 1 - 126 MB | FP16 | NPU | -- |
|
| 42 |
+
| BGNet | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 16.747 ms | 2 - 69 MB | FP16 | NPU | -- |
|
| 43 |
+
| BGNet | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 17.675 ms | 2 - 74 MB | FP16 | NPU | -- |
|
| 44 |
+
| BGNet | SA7255P ADP | SA7255P | TFLITE | 855.393 ms | 0 - 126 MB | FP16 | NPU | -- |
|
| 45 |
+
| BGNet | SA7255P ADP | SA7255P | QNN | 871.849 ms | 2 - 12 MB | FP16 | NPU | -- |
|
| 46 |
+
| BGNet | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 22.87 ms | 1 - 19 MB | FP16 | NPU | -- |
|
| 47 |
+
| BGNet | SA8255 (Proxy) | SA8255P Proxy | QNN | 19.895 ms | 2 - 4 MB | FP16 | NPU | -- |
|
| 48 |
+
| BGNet | SA8295P ADP | SA8295P | TFLITE | 37.995 ms | 1 - 99 MB | FP16 | NPU | -- |
|
| 49 |
+
| BGNet | SA8295P ADP | SA8295P | QNN | 34.745 ms | 2 - 19 MB | FP16 | NPU | -- |
|
| 50 |
+
| BGNet | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 23.03 ms | 0 - 17 MB | FP16 | NPU | -- |
|
| 51 |
+
| BGNet | SA8650 (Proxy) | SA8650P Proxy | QNN | 19.947 ms | 2 - 4 MB | FP16 | NPU | -- |
|
| 52 |
+
| BGNet | SA8775P ADP | SA8775P | TFLITE | 42.229 ms | 1 - 126 MB | FP16 | NPU | -- |
|
| 53 |
+
| BGNet | SA8775P ADP | SA8775P | QNN | 39.85 ms | 2 - 12 MB | FP16 | NPU | -- |
|
| 54 |
+
| BGNet | QCS8275 (Proxy) | QCS8275 Proxy | TFLITE | 855.393 ms | 0 - 126 MB | FP16 | NPU | -- |
|
| 55 |
+
| BGNet | QCS8275 (Proxy) | QCS8275 Proxy | QNN | 871.849 ms | 2 - 12 MB | FP16 | NPU | -- |
|
| 56 |
+
| BGNet | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 22.931 ms | 1 - 20 MB | FP16 | NPU | -- |
|
| 57 |
+
| BGNet | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 20.001 ms | 2 - 4 MB | FP16 | NPU | -- |
|
| 58 |
+
| BGNet | QCS9075 (Proxy) | QCS9075 Proxy | TFLITE | 42.229 ms | 1 - 126 MB | FP16 | NPU | -- |
|
| 59 |
+
| BGNet | QCS9075 (Proxy) | QCS9075 Proxy | QNN | 39.85 ms | 2 - 12 MB | FP16 | NPU | -- |
|
| 60 |
+
| BGNet | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 33.915 ms | 1 - 215 MB | FP16 | NPU | -- |
|
| 61 |
+
| BGNet | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 35.538 ms | 2 - 51 MB | FP16 | NPU | -- |
|
| 62 |
+
| BGNet | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 20.347 ms | 2 - 2 MB | FP16 | NPU | -- |
|
| 63 |
+
| BGNet | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 24.069 ms | 156 - 156 MB | FP16 | NPU | -- |
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
+
* The license for the original implementation of BGNet can be found
|
| 70 |
+
[here](This model's original implementation does not provide a LICENSE.).
|
| 71 |
+
* The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
## References
|
| 76 |
+
* [BGNet: Boundary-Guided Camouflaged Object Detection (IJCAI 2022)](https://arxiv.org/abs/2207.00794)
|
| 77 |
+
* [Source Model Implementation](https://github.com/thograce/bgnet)
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
## Community
|
| 82 |
+
* Join [our AI Hub Slack community](https://qualcomm-ai-hub.slack.com/join/shared_invite/zt-2d5zsmas3-Sj0Q9TzslueCjS31eXG2UA#/shared-invite/email) to collaborate, post questions and learn more about on-device AI.
|
| 83 |
+
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
| 84 |
+
|
| 85 |
+
## Usage and Limitations
|
| 86 |
+
|
| 87 |
+
Model may not be used for or in connection with any of the following applications:
|
| 88 |
+
|
| 89 |
+
- Accessing essential private and public services and benefits;
|
| 90 |
+
- Administration of justice and democratic processes;
|
| 91 |
+
- Assessing or recognizing the emotional state of a person;
|
| 92 |
+
- Biometric and biometrics-based systems, including categorization of persons based on sensitive characteristics;
|
| 93 |
+
- Education and vocational training;
|
| 94 |
+
- Employment and workers management;
|
| 95 |
+
- Exploitation of the vulnerabilities of persons resulting in harmful behavior;
|
| 96 |
+
- General purpose social scoring;
|
| 97 |
+
- Law enforcement;
|
| 98 |
+
- Management and operation of critical infrastructure;
|
| 99 |
+
- Migration, asylum and border control management;
|
| 100 |
+
- Predictive policing;
|
| 101 |
+
- Real-time remote biometric identification in public spaces;
|
| 102 |
+
- Recommender systems of social media platforms;
|
| 103 |
+
- Scraping of facial images (from the internet or otherwise); and/or
|
| 104 |
+
- Subliminal manipulation
|