DonutConfig constructor
const
DonutConfig({
- List<
int> inputSize = const [2560, 1920], - bool alignLongAxis = true,
- int windowSize = 10,
- List<
int> encoderLayer = const [2, 2, 14, 2], - int decoderLayer = 4,
- int maxPositionEmbeddings = 1536,
- int maxLength = 1536,
- int encoderEmbedDim = 128,
- List<
int> encoderNumHeads = const [4, 8, 16, 32], - int patchSize = 4,
- int decoderEmbedDim = 1024,
- int decoderFfnDim = 4096,
- int decoderNumHeads = 16,
- int vocabSize = 57525,
- String nameOrPath = '',
Implementation
const DonutConfig({
this.inputSize = const [2560, 1920],
this.alignLongAxis = true,
this.windowSize = 10,
this.encoderLayer = const [2, 2, 14, 2],
this.decoderLayer = 4,
this.maxPositionEmbeddings = 1536,
this.maxLength = 1536,
this.encoderEmbedDim = 128,
this.encoderNumHeads = const [4, 8, 16, 32],
this.patchSize = 4,
this.decoderEmbedDim = 1024,
this.decoderFfnDim = 4096,
this.decoderNumHeads = 16,
this.vocabSize = 57525,
this.nameOrPath = '',
});