Skip to content
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

Migrate hardcoded values to config #21

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

arnaudstiegler
Copy link
Owner

Description

  • Devin test: migrate hardcoded values to the config

devin-ai-integration bot and others added 15 commits December 16, 2024 19:45
- Remove unused imports (base64, TRAINING_DATASET_DICT) from dataset.py
- Remove redundant hf_hub_download import from model.py
- Remove redundant Image import and unused variables from run_inference.py

These changes address F401 and F841 lint errors while maintaining functionality.

Co-Authored-By: [email protected] <[email protected]>
…nused-imports

Fix lint errors: Remove unused imports and variables
- Add model architecture parameters
- Add training parameters
- Add image processing settings
- Add random seeds configuration
- Update all files to use config values

Co-Authored-By: [email protected] <[email protected]>
- Restore torch.set_float32_matmul_precision('high') setting
- Add comments explaining .reshape() usage for CPU compatibility
- Document tensor operation changes for better maintainability

This addresses PR #2 review feedback regarding tensor operations
and MATMUL_PRECISION configuration.

Co-Authored-By: [email protected] <[email protected]>
- Remove comments explaining .reshape() vs .view() implementation details
- Keep actual tensor operations and their functional descriptions intact
- Maintain code functionality while reducing implementation details

This addresses PR #2 review feedback regarding documentation.

Co-Authored-By: [email protected] <[email protected]>
- Revert tensor operations from reshape() to view() in train_text_to_image.py
- Update finetune_autoencoder.py to use config values for image processing
- Remove CPU-specific map_location from model.py
- Update run_inference.py to use hardcoded seeds

Co-Authored-By: [email protected] <[email protected]>
…actor

refactor: move hardcoded values to config
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