-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(studio): package data to send in main thread #860
Conversation
d34234a
to
79f16a2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #860 +/- ##
==========================================
+ Coverage 95.29% 95.35% +0.05%
==========================================
Files 55 55
Lines 3911 3979 +68
Branches 304 309 +5
==========================================
+ Hits 3727 3794 +67
Misses 138 138
- Partials 46 47 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
79f16a2
to
ca0564e
Compare
@skshetry PTAL |
plots_start_idx = {} | ||
for name, plot in plots.items(): | ||
num_points_sent = self._num_points_sent_to_studio.get(name, 0) | ||
plots_to_send[name] = plot[num_points_sent:] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see below that it did _cast_to_numbers
before? Do we need that here?
Fixes root cause of the #858. We'll still need another fix / research on why it was hanging.
There was a race condition since both (main and Studio updates) threads were reading / updating the same
live
instance values simultaneously.It seems it might be happening if a training loop is faster then Studio API call (can be when we have a lot of images).
TODO
❗ I have followed the Contributing to DVCLive guide.
📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏