Engineering note / Rust segmentation / Part 2 · expanded dataset

From 1,002 synthetic rust samples to 803 training candidates

By Updated Latest review completed October 25, 2026

The first note compared GPT Image 2.5 Sunburst and Nano Banana 2.1 on eight prompts. I then generated a larger pool of synthetic RGB images and rust masks, reviewed the labels, and prepared a candidate dataset for RF-DETR segmentation.

The initial review retained 400 of 502 pairs. An additional 500-pair generation batch dated 24 October, with processing and review completed on 25 October 2026, added 403 retained samples. The combined pool now contains 803 candidates from 1,002 reviewed pairs. This is still data preparation: no RF-DETR training results are reported here.

What is the result after both rounds?

803 image–mask pairs retained, 199 excluded: an 80.1% retention rate. The latest 500-pair batch contributed 403 candidates and 97 exclusions. Roughly four out of five screened pairs remain available for the next training experiment. That is an encouraging practical yield for this workflow, while smaller label errors can remain. Retention measures a screening decision, not segmentation accuracy.

Two retained synthetic container scenes from the new batch with masks: 1,002 reviewed and 803 retained overall
Two retained outputs from the same new container-scene prompt, each with its own generated mask at 50% opacity. The photographs differ; the images are not pixel-matched copies.

The progression: 502 pairs, then another 500

The first pool contained 486 new image–mask pairs, 243 from each generator, plus the 16-sample pilot. Its 16 October review retained 400 and excluded 102. The extension added 500 new pairs, evenly divided between the generators again. Each pair counts as one sample: one RGB image with its associated rust mask.

The generation records use GPT Image 2.5 Sunburst and Nano Banana 2.1, with the bulk images generated through Picsart. I use those recorded names here; the pilot’s note about unverified exact backend provenance still applies.

Review history and combined result
Review roundReviewedRetainedExcludedRetained share
Initial review · October 1650240010279.7%
October 24 batch · completed October 255004039780.6%
Combined1,00280319980.1%

The original 400 retained RGB images, masks and split assignments were preserved in the expanded dataset. The new work extends that snapshot; it does not replace it or count the pilot twice.

What changed between the generators?

The latest round used 125 scene groups, with two outputs from each generator per group. The four variants in a group share the same recorded prompt. This gives each model 250 outputs, with the same scene-family allocation: 200 requested positive scenes and 50 requested negatives per model.

Latest 500-pair batch only · reviewed October 25
GeneratorReviewedRetainedExcludedRetained share
Nano Banana 2.12501955578.0%
GPT Image 2.5 Sunburst2502084283.2%
Total5004039780.6%

GPT supplied more retained examples in the new batch. In the initial pool, Nano Banana had supplied more: 216 retained examples versus 184 GPT examples. Across both rounds the totals are 411 Nano Banana candidates and 392 GPT candidates, from 501 reviewed pairs per generator.

The reversal is useful context. The first round had different scene mixes between models—more posts and caps for Nano Banana, more hulls and distant railings for GPT. The extension balances the prompt allocation, but the generated photographs still differ and the acceptance decisions remain qualitative. These numbers describe the reviewed batches; they do not establish a universal model ranking or pixel-level accuracy.

Broader scene coverage

The extension adds pipes, gates, stairs and containers alongside the original object families. The table separates retained candidates from the initial pool and the new round; the pilot remains its own row because it spans several scene types.

Scene-family coverage and retained candidates
Scene familyInitial retainedNew reviewedNew retainedCombined retained
Painted posts586042100
Access caps53484497
Close guardrails625648110
Structural beams47483481
Mooring bollards614840101
Steel plates48402775
Boat hulls39403574
Distant railings24484266
Pipes0322727
Gates0322424
Stairs0241818
Containers0242222
Earlier pilot · mixed scenes8008
Total400500403803

What “retained” means in both reviews

Every RGB image and mask overlay was screened in numbered contact sheets, with some uncertain cases inspected at larger size. The latest round records a decision for each of its 500 samples. The target was large, visible geometry or semantic errors; this was not independent, pixel-by-pixel hand annotation of the whole collection.

The label rule remains visibly corroded, exposed iron or steel as positive. Intact paint, clean metal, shadows, dirt, vegetation, reflections and runoff staining on intact coating are negative. A convincing synthetic photograph can still have an unsuitable mask.

The new exclusions repeat familiar problems: displaced labels, missed corrosion, intact coating or bolts labelled positive, false image borders and noisy or coloured mask output. They also include requested negative scenes that visibly contain rust despite an empty mask. Minor contour differences were tolerated, and some semantic ambiguity remains.

Thresholding a generated mask into a binary file does not make it correct. The source workflow retains the original technical warnings and records accepted exceptions with review notes. Excluded examples remain in a separate local archive; they are absent from the training export.

Mask cleaning and its tradeoffs

Both generators use the same preparation: split the paired output into RGB and mask at the midpoint, threshold at 128, and identify 8-connected positive regions. Native RGB dimensions are preserved in the dataset. No automatic spatial realignment, contour smoothing or hole filling was applied.

The training-oriented mask version removes connected positive islands smaller than 32 source pixels. In the latest round, this affected 260 of the 403 retained samples and removed 28,333 positive pixels from 36,537,797 pre-filter positive pixels, approximately 0.0775%. Region counts fell from 6,266 to 3,184 for the new candidates, with at most 57 regions per new image.

The earlier round had already removed 26,915 pixels in 197 images, reducing 5,323 regions to 2,406. Combined, the prepared dataset contains 5,590 region annotations; the maximum remains 64 regions in one image. The unfiltered masks are preserved privately for later experiments.

This area filter can remove genuine very small corrosion as well as noise. It does not repair displaced masks or decide whether a brown mark is rust. It adds no positive pixels and leaves the surviving regions’ contours and holes unchanged. “32 pixels” is an area in source pixels, not a patch width or a universal relevance threshold.

In the first review, four visually checked negative masks had individually logged noise corrections of 342, two, three and 232 pixels. The extension used no whole-mask manual clearing: one negative sample’s single noise pixel disappeared through the same component-size filter. False-border samples were excluded rather than repaired into the accepted set.

Dataset v2: 803 images, with v1 preserved

The extension contributes 314 positive and 89 negative images. Together with the original 256 positives and 144 negatives, the current set contains 570 positive and 233 negative images. Negatives are 29.0% of the combined set, providing examples whose intended output is an empty rust mask.

The prepared export contains 803 RGB images, corresponding 0/1 semantic masks, and 5,590 connected-region annotations under a single rust category. Each connected rust region becomes one annotation, with its interior holes preserved.

Current dataset v2 split after review and filtering
SplitPositiveNegativeTotalAdded in extension
Train461189650325
Validation53227537
Test56227841
Total570233803403

The original 325/38/37 train/validation/test split remains intact within these totals. All four variants of each new scene group, across both generators, are assigned to a single split; excluded variants are omitted. New positive groups are allocated deterministically by topic, while negatives use a shared group pool. Positive topics with too few groups can be limited to training.

The saved export audit reports no recorded group crossing a split and no exact RGB duplicates in the full 803-image set. It also reports byte-for-byte preservation of the original 400 RGB and mask files. This protects the recorded groups and exact files; it does not rule out perceptually similar scenes made from different prompts. A full near-duplicate visual audit has not been performed.

Technical validation checks geometry and encoding: image dimensions, reconstructed masks, region areas and boxes, non-overlapping components, and the union of region masks against the semantic mask. Passing those checks does not establish semantic label accuracy. The saved processing report records 12 passing converter tests, but no actual RF-DETR loader or training-batch test in that processing environment.

Questions answered

How many synthetic rust samples were generated and kept?

Across the initial pool and the extension, 1,002 image–mask pairs were reviewed. A total of 803 were retained and 199 excluded, giving 80.1% retention. The latest 500-pair batch alone contributed 403 retained examples and 97 exclusions.

What happened to the earlier 400-image dataset?

Its 400 RGB images, masks and split assignments are preserved in dataset v2. The extension adds 403 candidates, giving 803 in total; it does not regenerate or replace the original set.

Does 80.1% retention mean 80.1% segmentation accuracy?

No. Retention is the share kept after screening for large visible errors. The labels have not been measured against independently hand-annotated ground truth, and smaller errors may remain.

Which generator contributed more retained images?

In the extension, GPT Image 2.5 Sunburst contributed 208 and Nano Banana 2.1 contributed 195. Across both rounds, Nano Banana contributed 411 and GPT contributed 392. The change between rounds and the different initial scene mixes make these workflow results, not a universal quality ranking.

Have these data been used to train RF-DETR?

No training results are included in this note. The latest processing record, completed October 25, covers generation, screening, cleaning and export. RF-DETR loading, training and real-image evaluation remain the next stage.

Can I download the complete dataset from this article?

No. The article shares selected reduced previews. The full generation archive, private review gallery and prepared training dataset are not published here.

Continue the project

This is the October 26 update to the original October 16 note. It incorporates the October 24 generation batch whose processing and review were completed on October 25. Counts come from the saved manifests, decisions and preparation summaries. The earlier review remains identifiable as a historical snapshot.

Notes from the workbench

Keep an eye on what’s next.

New engines, live demos, and practical engineering notes from me, Antal. Occasional emails when there’s something worth sharing.