(
dataset_kwargs_list: List[Dict[str, Any]], dataset_weights: List[int]
)
| 191 | |
| 192 | # === RLDS Dataset Initialization Utilities === |
| 193 | def pprint_data_mixture( |
| 194 | dataset_kwargs_list: List[Dict[str, Any]], dataset_weights: List[int] |
| 195 | ) -> None: |
| 196 | print( |
| 197 | "\n######################################################################################" |
| 198 | ) |
| 199 | print( |
| 200 | f"# Loading the following {len(dataset_kwargs_list)} datasets (incl. sampling weight):{'': >24} #" |
| 201 | ) |
| 202 | for dataset_kwargs, weight in zip(dataset_kwargs_list, dataset_weights): |
| 203 | pad = 80 - len(dataset_kwargs["name"]) |
| 204 | print(f"# {dataset_kwargs['name']}: {weight:=>{pad}f} #") |
| 205 | print( |
| 206 | "######################################################################################\n" |
| 207 | ) |
| 208 | |
| 209 | |
| 210 | def cartesian_to_spherical(x, y, z): |
no outgoing calls
no test coverage detected