artist.field.tower_target_areas_planar
Attributes
A logger for the planar tower target areas. |
Classes
Initialize the planar target areas. |
Module Contents
- artist.field.tower_target_areas_planar.log
A logger for the planar tower target areas.
- class artist.field.tower_target_areas_planar.TowerTargetAreasPlanar(names: list[str], centers: torch.Tensor, normals: torch.Tensor, dimensions: torch.Tensor)
Bases:
artist.field.tower_target_areas.TowerTargetAreasInitialize the planar target areas.
Parameters
- nameslist[str]
Name of each planar target area.
- centerstorch.Tensor
Center point coordinate of each planar target area. Shape is
[number_of_target_areas, 4].- normalstorch.Tensor
Normal vector of each planar target area. Shape is
[number_of_target_areas, 4].- dimensionstorch.Tensor
Dimensions of each planar target area (width, then height). Shape is
[number_of_target_areas, 2].
- dimensions
- classmethod from_hdf5(config_file: h5py.File, device: torch.device | None = None) Self
Load all planar target areas from an HDF5 file.
Parameters
- config_fileh5py.File
HDF5 file containing the configuration to be loaded.
- devicetorch.device | None
The device on which to perform computations or load tensors and models (default is None). If None,
ARTISTwill automatically select the most appropriate device (CUDA or CPU) based on availability and OS.
Returns
- TowerTargetAreasPlanar
Target areas loaded from the HDF5 file.