Skip to content

Conversation

@gitttt-1234
Copy link
Collaborator

This PR fixes the following bugs:

  • torch.load() in lightning_modules.py failed when using "gpu" as the device for map location, it should use "cuda" / "mps" / "cpu". Related Issue: Loading customized pretrained_backbone_weights throws PyTorch error #321

  • Fixes a bug in computing the length of the dataloader. (If there's only one sample, the code failed to return 1)

  • Resolved a compatibility issue where MediaVideo backends did not work with the threading model used for caching. (Removing the thread-based approach for now)

@gitttt-1234 gitttt-1234 linked an issue Sep 10, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.46%. Comparing base (ff91433) to head (80a492d).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #322      +/-   ##
==========================================
- Coverage   95.28%   93.46%   -1.83%     
==========================================
  Files          49       49              
  Lines        6765     6946     +181     
==========================================
+ Hits         6446     6492      +46     
- Misses        319      454     +135     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gitttt-1234 gitttt-1234 merged commit fd4c3f6 into main Sep 10, 2025
8 checks passed
@gitttt-1234 gitttt-1234 deleted the divya/fix-training-bugs branch September 10, 2025 00:46
@gitttt-1234 gitttt-1234 restored the divya/fix-training-bugs branch September 16, 2025 05:04
@gitttt-1234 gitttt-1234 deleted the divya/fix-training-bugs branch October 28, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loading customized pretrained_backbone_weights throws PyTorch error

2 participants