As a new class called Trainer() has been added to DLSIA, we can call this class instead of using the previous train_segmentation() function in train.py. The main changes are summarized as follows:
from dlsia.core.train_scripts import Trainer
from dvclive import Live
dvclive= Live(...)
trainer = Trainer(..., dvclive=dvclive)
net, results = trainer.train_segmentation()
As a new class called Trainer() has been added to DLSIA, we can call this class instead of using the previous train_segmentation() function in train.py. The main changes are summarized as follows: