Utility Commands
Transfer Learning provides several utility commands to help manage the application, clean up resources, and configure settings.Cleanup Command
Thecleanup command removes temporary files and directories that are older than a specified age.
Usage
Options
| Option | Description | Default |
|---|---|---|
--max-age-hours INTEGER | Maximum age in hours for files to keep | 24 |
--force | Force cleanup without confirmation | False |
--help | Show help message and exit | - |
Examples
Stop Command
Thestop command stops running processes and cleans up resources.
Usage
Options
| Option | Description | Default |
|---|---|---|
--force | Force stop without confirmation | False |
--clean-temp | Clean temporary files | True |
--clean-cache | Clean cache files | True |
--process-pattern TEXT | Pattern to match process names | transfer-learning |
--help | Show help message and exit | - |
Examples
Config Command
Theconfig command allows you to view and modify configuration settings.
Usage
Options
| Option | Description | Default |
|---|---|---|
--show | Show current configuration | False |
--reset | Reset configuration to defaults | False |
--help | Show help message and exit | - |
Examples
Interactive Configuration
When run without options, theconfig command enters an interactive mode that allows you to configure various settings:
- API Keys
- Processing Settings
- Output Directories
- Model Settings
- Advanced Settings
Configuration Settings
The following settings can be configured:API Keys
- OpenAI API Key
- Other service API keys
Processing Settings
- Batch size
- Maximum concurrent batches
- Frame interval
- Default quality
Output Directories
- Data directory
- Guides directory
- Transcripts directory
- Videos directory
- Analysis directory
Model Settings
- Default OpenAI model
- Default Whisper model
- Temperature
Advanced Settings
- Cache settings
- Logging level
- Metrics collection
Configuration File
The configuration is stored in a.env file in the application directory. You can also manually edit this file if needed.
Example .env file: