added log warning when using instance segmantion with bytetrack

This commit is contained in:
swdee
2024-08-24 16:54:40 +12:00
parent 79472825a7
commit ac8bcfdc9d

View File

@@ -125,6 +125,7 @@ func NewDemo(vidFile, modelFile, labelFile string, poolSize int,
// force FPS to 10, as we don't have enough CPU power to do 30 FPS
FPS = 10
FPSinterval = time.Duration(float64(time.Second) / float64(FPS))
log.Println("***WARNING*** Instance Segmentation requires a lot of CPU, downgraded to 10 FPS")
default:
log.Fatal("Unknown model type, use 'v5', 'v8', 'v10', or 'x'")
}