Skip to content

Commit

Permalink
Added confidence slider
Browse files Browse the repository at this point in the history
Actually fixed the fallback
  • Loading branch information
SCRN-VRC committed Apr 9, 2021
1 parent 8d8c491 commit be84689
Show file tree
Hide file tree
Showing 10 changed files with 619 additions and 1,613 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ This implementation is based on the TensorFlow version from https://github.com/h
2. Drop the prefab onto your avatar

## Code
### Important Shader Properties
**yolov4tiny.shader**
1. Frame Delay - How much time each layer waits to update. Default value is 3, the lower it is the more GPU intensive it is.

**nms.shader**
1. Confidence Threshold - The cut off point for which the bounding boxes will be culled. Default value is 3. Lowering this value will increase the boxes but also increase the error rate.

### Reading the Output
The basic setup is: **yolov4tiny.shader** -> **nms.shader** -> **output.shader**. To read the bounding boxes information, we loop through the output of **nms.shader**

Expand Down
1 change: 1 addition & 0 deletions Unity/YOLOv4 tiny/Materials/nms.mat
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Material:
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Confidence: 0.5
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
Expand Down
Loading

0 comments on commit be84689

Please sign in to comment.