Skip to content

Fix: Add local execution support and validation to data loader - #232

Open
ChiragKaushik4 wants to merge 1 commit into
ML4SCI:mainfrom
ChiragKaushik4:fix-local-execution
Open

Fix: Add local execution support and validation to data loader#232
ChiragKaushik4 wants to merge 1 commit into
ML4SCI:mainfrom
ChiragKaushik4:fix-local-execution

Conversation

@ChiragKaushik4

Copy link
Copy Markdown

Description
This Pull Request improves the local developer experience by resolving issues that prevent the codebase from running in an offline or local environment.

Key Changes:

Data Validation: Added defensive checks in data.py within LensDataset.init. Instead of allowing the code to crash with cryptic PyTorch errors when the directory is missing or empty, it now raises a clear ValueError or FileNotFoundError with descriptive instructions.

Local Execution: Adjusted eval.py to allow the code to run without requiring a cloud-based Weights & Biases connection, enabling local evaluation and testing.

Stability: Cleaned up code to avoid deprecation warnings and improved error handling for empty dataset structures.

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.

1 participant