Code Monkey home page Code Monkey logo

Comments (7)

sobri909 avatar sobri909 commented on July 29, 2024

Interesting!

I'm guessing you've got timeline.activityTypeClassifySamples set to true in the Demo App's main view controller?

The requests you're seeing are requests for activity type ML model data. For them to repeat like that would suggest that either the server isn't returning any models, or it's denied the request (unlikely, because the response code is 200), or there's a bug in that version of LocoKit that allows duplicate/redundant model requests.

Either way, the first step I'd recommend is switching to the develop or timelines branches, as the master branch is very far behind these days. I haven't had a spare moment to ship a new stable release in quite some months.

The timelines branch is the most up to date, and will be the code used in the next Arc App version (probably getting submitted to Apple tomorrow). So that'll be the one to go with.

Let me know if you see the same problem in that branch. Thanks 😄

from locokit.

EugeneEl avatar EugeneEl commented on July 29, 2024

Yes, I think you're right.
Data for my region is unavailable for now. I checked that via map on your website and even tried to fetch classifier models in demo by passing hardcoded coordinates😊
Because SDK has no classifier models it attempts to fetch them again and again so it confused me.
In any way this issue can be closed)

Also I downloaded timelines branch but unfortunately I got 2 errors:
ActivityTypesCache

   LocoKitService.fetchModelsFor(coordinate: depthCenter, depth: depth) { json in
            if let json = json { self.parseTypes(json: json) } 

Type 'LocoKitService' has no member 'fetchModelsFor'

LocomotionManager

        LocoKitService.requestWakeup(at: wakeupTime)

Type 'LocoKitService' has no member 'requestWakeup'

Of course I won't create a new issue for it because you're currently working on this branch😄
If you have a chance to update or answer for this it would be cool.
In any way I will wait for stable release
Thank you for your fast answer😄

from locokit.

sobri909 avatar sobri909 commented on July 29, 2024

Data for my region is unavailable for now. I checked that via map on your website and even tried to fetch classifier models in demo by passing hardcoded coordinates😊

Hmm. Are you using Arc App in that area? As long as you've confirmed/corrected any activity types at all in that region, there should be model data on the server.

The LocoKit coverage page won't necessarily show the model data coordinates for that region, because the data has to pass various privacy thresholds before it can be shown publicly.

Type 'LocoKitService' has no member 'fetchModelsFor'

That's odd. I built a new LocoKitCore binary just a couple of days ago to fix that exact problem. And confirmed in the Demo App in that that it was working correctly.

It's probably worth deleting the Pods folder and doing a fresh pod install, to be sure you've got the latest LocoKitCore.

from locokit.

sobri909 avatar sobri909 commented on July 29, 2024

I just realised this morning that the coverage map is actually a good indicator of what data will be available to LocoKit, because LocoKit has the same privacy restrictions enforced on it. The same privacy thresholds are being applied in both cases.

So yeah, if you're not seeing anything on the coverage map for that area, then there won't be any data available to LocoKit either. It would require multiple users training their models to completion, for that region, so that there's no risk of the model data representing only a single person.

from locokit.

EugeneEl avatar EugeneEl commented on July 29, 2024

Thank you for explanation. I'll try to test SDK in some another region.
Are you going to merge timelines branch into master?
So it can be considered as final?)
Or you're going to test it in Arc application first?
Sorry for too many questions)

from locokit.

sobri909 avatar sobri909 commented on July 29, 2024

Are you going to merge timelines branch into master? So it can be considered as final?

Yep! And yep!

Or you're going to test it in Arc application first?

I submitted an updated Arc App to Apple last night, which is built using that branch of LocoKit. So that'll be going live on the App Store presumably later today.

The only thing holding it back from being merged into master is missing documentation. Well, and one ugly bit of API, but the workaround for that ugly API is a one liner, so it's not a major blocker.

I'll probably merge it into master next week. I doubt I'll get time to fill in all the missing documentation first though.

from locokit.

sobri909 avatar sobri909 commented on July 29, 2024

I'm going to close this issue for now, on the assumption that the timelines branch isn't doing repeated wasteful requests.

But @EugeneGoloboyar if you're able to reproduce the problem on that branch, definitely let me know! There's throttling code in there to stop it, but there's always a chance I missed something. Thanks 😄

from locokit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.