Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.12] - 2026-12-05

### Added

#### Hugging Face image dataset support
- Added `HuggingFaceImageDataset`, adapting a map-style Hugging Face `Dataset` split to the paired image interface used by VSF trainers and visualization utilities.

#### Hugging Face training example
- Added a CPJUMP JPEG example pairing ch07 middle-plane brightfield with ch05 DNA from a selected plate shard, with complete-pair validation and well-level train/validation separation before cropping.

---

## [0.4.11] - 2026-10-15

### Refactored
Expand Down
16 changes: 15 additions & 1 deletion examples/2.training_with_logging_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@
"# Training U-Net with logging Example Notebook\n",
"\n",
"This notebook demonstrates how to train `virtual_stain_flow.models` module,\n",
"demoing with trainer and logging. "
"demoing with trainer and logging. \n",
"\n",
"## Pre-requisite\n",
"A mlflow tracking server must be started separate of training!\n",
"\n",
"e.g.\n",
"```{bash}\n",
"mlflow server \\\n",
"# optionally configure backend location if you don't want mlflow to auto select for you\n",
"# --backend-store-uri [some location / mlflow.sqlite] \\\n",
"# --default-artifact-root [some location / artifacts] \\\n",
" --serve-artifacts \\\n",
" --host 127.0.0.1 \\\n",
" --port 5000 # change port if conflict\n",
"```"
]
},
{
Expand Down
664 changes: 664 additions & 0 deletions examples/2b.training_with_logging_with_hf_dataset_example.ipynb

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion examples/3.training_wgan_with_logging_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,21 @@
"# Training wGAN (U-Net generator) with logging Example Notebook\n",
"\n",
"This notebook demonstrates how to train `virtual_stain_flow.models` module,\n",
"demoing with trainer and logging. "
"demoing with trainer and logging. \n",
"\n",
"## Pre-requisite\n",
"A mlflow tracking server must be started separate of training!\n",
"\n",
"e.g.\n",
"```{bash}\n",
"mlflow server \\\n",
"# optionally configure backend location if you don't want mlflow to auto select for you\n",
"# --backend-store-uri [some location / mlflow.sqlite] \\\n",
"# --default-artifact-root [some location / artifacts] \\\n",
" --serve-artifacts \\\n",
" --host 127.0.0.1 \\\n",
" --port 5000 # change port if conflict\n",
"```"
]
},
{
Expand Down
7 changes: 6 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ This downloads the full 50GB of brightfield and fluorescence microscopy images f

### 2. Run Examples

Two example notebooks demonstrate core workflows:
Example notebooks demonstrate core workflows:

- **`1.modular_unet_example.ipynb`** - Building and configuring UNet models.
Does not require dataset downloads.
- **`2.training_with_logging_example.ipynb`** - Training with MLflow logging and callbacks.
Requires dataset and setting up of a mlflow tracking server.
- [2b.training_with_logging_with_hf_dataset_example.ipynb](2b.training_with_logging_with_hf_dataset_example.ipynb) -
Pairs ch07 brightfield and ch05 DNA from a single Hugging Face JPEG plate shard,
holds out a well, and trains with native 128×128 center crops and MLflow logging.
Requires the Hugging Face `datasets` package and internet access for ingestion;
preparation and inference checks can run without an MLflow server.

## Requirements
See the project's `pyproject.toml`.
Expand Down
14 changes: 14 additions & 0 deletions examples/nbconverted/2.training_with_logging_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@
#
# This notebook demonstrates how to train `virtual_stain_flow.models` module,
# demoing with trainer and logging.
#
# ## Pre-requisite
# A mlflow tracking server must be started separate of training!
#
# e.g.
# ```{bash}
# mlflow server \
# # optionally configure backend location if you don't want mlflow to auto select for you
# # --backend-store-uri [some location / mlflow.sqlite] \
# # --default-artifact-root [some location / artifacts] \
# --serve-artifacts \
# --host 127.0.0.1 \
# --port 5000 # change port if conflict
# ```

# ## Dependencies

Expand Down
Loading
Loading