ComfyUI Node

TrainModel

A ComfyUI node in ETK/pytorch with 11 inputs and 3 outputs.

By TashaSkyUp·Created about a year ago·Updated about a year ago· 1
TrainModel
  • model
  • dataset
  • features tensor
  • labels tensor
  • model
  • metrics
  • best model
epochs1
batch_size1
loss_functionCrossEntropyLoss
optimizerSGD
metricsaccuracy
devicetorch.device('cpu')
create_samplesFALSE
CategoryETK/pytorch

Inputs (11)

NameTypeDefaultDescription
modelTORCH_MODEL
datasetoptTORCH_DATASET
features tensoroptTORCH_TENSOR
labels tensoroptTORCH_TENSOR
epochsoptINT11–16777216
batch_sizeoptINT1
loss_functionoptCOMBOCrossEntropyLoss22 options: AdaptiveLogSoftmaxWithLoss, BCELoss, BCEWithLogitsLoss, CTCLoss, CosineEmbeddingLoss, CrossEntropyLoss, +16
optimizeroptCOMBOSGD15 options: ASGD, Adadelta, Adafactor, Adagrad, Adam, AdamW, +9
metricsoptCOMBOaccuracy23 options: accuracy, AdaptiveLogSoftmaxWithLoss, BCELoss, BCEWithLogitsLoss, CTCLoss, CosineEmbeddingLoss, +17
deviceoptSTRINGtorch.device('cpu')
create_samplesoptCOMBOFALSE2 options: TRUE, FALSE

Outputs (3)

NameTypeDescription
modelTORCH_MODEL
metricsLIST
best modelTORCH_MODEL