Repository navigation
Releases: sync-dev-org/pixtreme-train
Release list
v0.3.0
pixtreme-train v0.3.0
Training from a YAML configuration:
registerandlookupselect networks, losses, training steps, optimizers, schedulers and datasets by name. Thedefaultstep, theadam,adamwandsgdoptimizers, thewarmup_cosinescheduler, thel1,mseandcharbonnierlosses, and theimage_degradationandimage_evaluationdatasets are registered.TrainingStepis the base class for one update; a trainer overridesstepand, when needed, the optimizer construction, state, configuration checks and evaluation.DefaultSteptrains onemainnetwork with weighted losses, a scheduler and optional EMA.- With
train.precision: bf16, only the network forward runs under bfloat16 autocast on CUDA; the loss, weights, gradients, optimizer state, EMA weights, evaluation and checkpoints stay float32. trainruns the training loop: resume from a checkpoint, checkpoint and evaluation intervals, one JSON line per update, and SIGINT / SIGTERM handling that saves a checkpoint before exiting.- The
pixtreme-train train CONFIG --output DIR [--resume CHECKPOINT]command runstrainand prints the path of the last checkpoint. load_networkrebuilds a trained network from a checkpoint, with its EMA or training weights.
Image data and on-the-fly LQ generation:
DegradationPipelineandload_pipelinedescribe named, seeded sequences ofresizeandencodesteps (jpeg,prores_lt,h264,hevc) with fixed values, ranges or candidates.ImageDegradationDatasetcrops aligned GT / LQ patches with randomness derived from the sample number, so samples do not depend on DataLoader workers;NumberedSamplerandsample_generatorprovide those numbers and streams.augment_imagesflips and transposes paired images.ImageEvaluationDatasetdegrades full evaluation images;image_pathsselects image files.
The prores_lt, h264 and hevc steps, and reading 16-bit RGB images, need an ffmpeg command on PATH. Importing pixtreme.train.common still does not load torch.
The wheel attached here is the reference copy for the PyPI distribution of pixtreme-train. Verify it with sha256sum -c SHA256SUMS.
v0.2.0
pixtreme-train v0.2.0
New training components in pixtreme.train.common:
write_textandstaging_directoryreplace a file or a directory only after the new content is fully written.training_signalsturns SIGINT and SIGTERM into a stop request for a training loop, withdefer()for sections that must finish.worker_signalsandstop_loader_workershandle signals in DataLoader worker processes and stop and reap the workers of an iterator without waiting for prefetched batches.rng_stateandrestore_rng_statesave and restore the Python, NumPy, torch CPU and CUDA, and namedtorch.Generatorrandom states.warmup_cosine_factor,update_ema,check_finite_loss,check_finite_gradients,release_gpu_memoryandEndlessSamplerprovide small training parts.
Importing pixtreme.train.common still does not load torch; each torch-based name loads its module on first access.
The wheel attached here is the reference copy for the PyPI distribution of pixtreme-train. Verify it with sha256sum -c SHA256SUMS.
v0.1.2
pixtreme-train v0.1.2
MaterialMetricsandEvaluationMetricswith no frames now raiseValueErrorfrompsnr_mean,ssim_meanandto_dict. For a material, the message names its path. The means stayfloat.
The wheel attached here is the reference copy for the PyPI distribution of pixtreme-train. Verify it with sha256sum -c SHA256SUMS.
v0.1.1
pixtreme-train v0.1.1
- Importing
pixtreme.train.commonorpixtreme.train.common.configurationno longer loads torch. The metrics and checkpoint components are loaded when one of their names is first used. All public names stay the same.
The wheel attached here is the reference copy for the PyPI distribution of pixtreme-train. Verify it with sha256sum -c SHA256SUMS.
v0.1.0
pixtreme-train v0.1.0: the first release of pixtreme.train.common, the shared training components for pixtreme model trainers.
- Option values and reusable YAML configuration (
Option,plain,write_yaml) - PSNR and SSIM measurement with pixtreme and frame-weighted aggregation (
rgb_frame,measure,FrameMetrics,MaterialMetrics,EvaluationMetrics,json_metric) - Checkpoint saving that keeps the previous file when writing fails (
save_checkpoint)
The wheel attached here is the reference copy for the PyPI distribution of pixtreme-train. Verify it with sha256sum -c SHA256SUMS.