hollance / YOLO-CoreML-MPSNNGraph

Tiny YOLO for iOS implemented using CoreML but also using the new MPS graph API.
MIT License
929 stars 251 forks source link

Performance decrease #60

Closed ductus closed 4 years ago

ductus commented 4 years ago

Hello, I run TinyYOLO-CoreML on my iPhone X (iOS 12.4), I put my iPhone on the table, do not detect anything. After about 5 minutes:

I have same problem when I detect person. Is it a bug? How can I keep performance well after run a long time?

Thank you!

hollance commented 4 years ago

How hot is your phone at this point? If it's hot, then the GPU has throttled down to prevent the phone from overheating.

ductus commented 4 years ago

Yes, my phone is hot. I want to open the app for a long time, how should I do?

hollance commented 4 years ago

If you want to run this kind of model for a long time, you should run it less often. Running at full speed is only a good idea if it's for short periods of time.

I'd also suggest using a different architecture, such as MobileNet2+SSDLite, which runs much more efficiently on older phones such as the iPhone X.

ductus commented 4 years ago

Thank you very much.