Class ShapeNetCorePartSegmentationDataLoader<T>
Loads the ShapeNetCore part segmentation dataset.
public sealed class ShapeNetCorePartSegmentationDataLoader<T> : PointCloudDatasetLoaderBase<T>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IDataLoader<T>, IResettable, ICountable, IBatchIterable<(Tensor<T> Features, Tensor<T> Labels)>, IShuffleable
Type Parameters
T
- Inheritance
-
ShapeNetCorePartSegmentationDataLoader<T>
- Implements
-
IDataLoader<T>
- Inherited Members
- Extension Methods
Constructors
ShapeNetCorePartSegmentationDataLoader(ShapeNetCorePartSegmentationDataLoaderOptions?)
Initializes a new instance of the ShapeNetCorePartSegmentationDataLoader<T> class.
public ShapeNetCorePartSegmentationDataLoader(ShapeNetCorePartSegmentationDataLoaderOptions? options = null)
Parameters
Properties
CategoryMappings
Gets the synset-to-category mappings.
public IReadOnlyDictionary<string, string> CategoryMappings { get; }
Property Value
CategoryNames
Gets the category names defined in the dataset metadata.
public IReadOnlyList<string> CategoryNames { get; }
Property Value
Description
Gets a description of the dataset and its intended use.
public override string Description { get; }
Property Value
Name
Gets the human-readable name of this data loader.
public override string Name { get; }
Property Value
Remarks
Examples: "MNIST", "Cora Citation Network", "IMDB Reviews"
NumClasses
Gets the number of part classes.
public int NumClasses { get; }
Property Value
Methods
LoadDataCoreAsync(CancellationToken)
Core data loading implementation to be provided by derived classes.
protected override Task LoadDataCoreAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token for async operation.
Returns
- Task
A task that completes when loading is finished.
Remarks
Derived classes must implement this to perform actual data loading: - Load from files, databases, or remote sources - Parse and validate data format - Store in appropriate internal structures
UnloadDataCore()
Core data unloading implementation to be provided by derived classes.
protected override void UnloadDataCore()
Remarks
Derived classes should implement this to release resources: - Clear internal data structures - Release file handles or connections - Allow garbage collection of loaded data