You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hardware configuration is controlled by the parameter "hardwareconfigid", which can be obtained through the API interface.("API interfaces use methods" --> "Get platform hardware configuration information")
99
-
100
-
If "ram" and "hardwareconfigid" are set in "Task_info"
101
-
102
-
以“hardwareConfigId”为主, 没有则以"ram"设置为主.
103
-
104
-
```
105
-
from rayvision_api.utils import update_task_info, append_to_task, append_to_upload
### IV. Setting hardware Configuration and Validate json file
124
+
125
+
The hardware configuration is controlled by the parameter "hardwareconfigid", which can be obtained through the API interface.("API interfaces use methods" --> "Get platform hardware configuration information")
126
+
127
+
Specify the hardware configuration by setting `model`, `ram`, `gpuNum` of hardware_config
128
+
129
+
```
130
+
hardware_config = {
131
+
"model": "Default", # Platform CPU: Default or Platform GPU: 1080Ti or 2080Ti
132
+
"ram": "64GB", # memory: 64GB or 128GB
133
+
"gpuNum": None # GPU platform requires input like 2*GPU, if CPU platform it is None
134
+
}
135
+
```
140
136
141
-
When validating,we check whether there is' user_id ', 'project_id', 'task_id' in task.json,
137
+
When validating,we set the hardware configuration based on the hardware_config and check whether there is` user_id `, `project_id`, `task_id` in task.json,
142
138
If not, the interface is called to fetch the relevant parameters from the server and write task.json
0 commit comments