ImageFolderDataset class
- Inheritance
-
- Object
- Dataset<
FaceSample> - ImageFolderDataset
Constructors
Properties
-
classes
↔ List<
String> -
latefinal
- device → Device
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageSize → int
-
final
- length → int
-
no setteroverride
- numClasses → int
-
no setter
- numPatches → int
-
no setter
- numTrain → int
-
no setter
- numVal → int
-
no setter
- patchPixels → int
-
no setter
- patchSize → int
-
final
- rootPath → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tripletReadyClasses
→ List<
int> -
Train classes with
>= 2samples (needed for triplet sampling).no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patchify(
Float32List flat) → Float32List -
Patchify a flat
H×W×3(channels-last) image into[numPatches, patchPixels], row-major over patches. Each patch's pixels are laid out as(dy_in_patch, dx_in_patch, c). -
sampleTriplet(
) → TripletSample - Draw one triplet from the train split.
-
toString(
) → String -
A string representation of this object.
inherited
-
valSplit(
) → ImageFolderDataset - A companion dataset over the validation split of the same underlying files (no re-decoding). Cheap.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → FaceSample -
override