utils/device_info
module¶
device_info
¶
Classes¶
Functions¶
detect_darwin
¶
Detect hardware specifications on macOS, including CPU and GPU details.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
specs
|
dict
|
Initial dictionary containing OS information. |
required |
Returns:
Type | Description |
---|---|
dict
|
Updated dictionary with CPU architecture and GPU type for macOS. |
Source code in color_correction/utils/device_info.py
detect_linux
¶
Detect hardware specifications on Linux systems.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
specs
|
dict
|
Initial dictionary with OS information. |
required |
Returns:
Type | Description |
---|---|
dict
|
Updated dictionary with CPU architecture and GPU type for Linux. |
Source code in color_correction/utils/device_info.py
detect_windows
¶
Detect hardware specifications on Windows systems.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
specs
|
dict
|
Initial dictionary with OS information. |
required |
Returns:
Type | Description |
---|---|
dict
|
Updated dictionary with CPU architecture and GPU type for Windows. |
Source code in color_correction/utils/device_info.py
get_device_specs
¶
Retrieve a structured set of device hardware specifications.
Returns:
Type | Description |
---|---|
DeviceSpecs
|
An object containing OS name, CPU architecture, GPU type, and Apple Silicon flag. |