tfg.datasets.shapenet.Shapenet.builder_config_cls
Stay organized with collections
Save and categorize content based on your preferences.
A Shapenet config for loading the original .obj files.
tfg.datasets.shapenet.Shapenet.builder_config_cls(
model_subpath='models/model_normalized.obj'
)
Attributes |
name
|
Dataclass field
|
version
|
Dataclass field
|
release_notes
|
Dataclass field
|
supported_versions
|
Dataclass field
|
description
|
Dataclass field
|
Methods
from_dataset_info
@classmethod
from_dataset_info(
info_proto: dataset_info_pb2.DatasetInfo
) -> Optional['BuilderConfig']
generate_examples
View source
generate_examples(
base_dir, models
)
Yields examples.
The structure of the examples:
{
'trimesh': tensorflow_graphics.datasets.features.TriangleMesh
'label': tensorflow_datasets.features.ClassLabel
'model_id': tensorflow_datasets.features.Text
}
Args |
base_dir
|
The base directory of shapenet.
|
models
|
The list of models in the split.
|
info
View source
info(
dataset_builder
)
Delegated Shapenet._info.
split_generators
View source
split_generators(
dl_manager, dataset_builder
)
Delegated Shapenet._split_generators.
Class Variables |
description
|
None
|
release_notes
|
None
|
version
|
None
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-07 UTC.
[null,null,["Last updated 2022-10-07 UTC."],[],[],null,["# tfg.datasets.shapenet.Shapenet.builder_config_cls\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/datasets/shapenet/shapenet.py#L77-L173) |\n\nA Shapenet config for loading the original .obj files. \n\n tfg.datasets.shapenet.Shapenet.builder_config_cls(\n model_subpath='models/model_normalized.obj'\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|----------------------|-----------------|\n| `name` | Dataclass field |\n| `version` | Dataclass field |\n| `release_notes` | Dataclass field |\n| `supported_versions` | Dataclass field |\n| `description` | Dataclass field |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `from_dataset_info`\n\n @classmethod\n from_dataset_info(\n info_proto: dataset_info_pb2.DatasetInfo\n ) -\u003e Optional['BuilderConfig']\n\n### `generate_examples`\n\n[View source](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/datasets/shapenet/shapenet.py#L147-L173) \n\n generate_examples(\n base_dir, models\n )\n\nYields examples.\n\nThe structure of the examples:\n{\n'trimesh': tensorflow_graphics.datasets.features.TriangleMesh\n'label': tensorflow_datasets.features.ClassLabel\n'model_id': tensorflow_datasets.features.Text\n}\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ||\n|------------|----------------------------------|\n| `base_dir` | The base directory of shapenet. |\n| `models` | The list of models in the split. |\n\n\u003cbr /\u003e\n\n### `info`\n\n[View source](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/datasets/shapenet/shapenet.py#L89-L102) \n\n info(\n dataset_builder\n )\n\nDelegated Shapenet._info.\n\n### `split_generators`\n\n[View source](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/datasets/shapenet/shapenet.py#L104-L145) \n\n split_generators(\n dl_manager, dataset_builder\n )\n\nDelegated Shapenet._split_generators.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|---------------|--------|\n| description | `None` |\n| release_notes | `None` |\n| version | `None` |\n\n\u003cbr /\u003e"]]