Engineering note / Rust segmentation / Part 2 · expanded dataset
From 1,002 synthetic rust samples to 803 training candidates
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.

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 round | Reviewed | Retained | Excluded | Retained share |
|---|---|---|---|---|
| Initial review · October 16 | 502 | 400 | 102 | 79.7% |
| October 24 batch · completed October 25 | 500 | 403 | 97 | 80.6% |
| Combined | 1,002 | 803 | 199 | 80.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.
| Generator | Reviewed | Retained | Excluded | Retained share |
|---|---|---|---|---|
| Nano Banana 2.1 | 250 | 195 | 55 | 78.0% |
| GPT Image 2.5 Sunburst | 250 | 208 | 42 | 83.2% |
| Total | 500 | 403 | 97 | 80.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 | Initial retained | New reviewed | New retained | Combined retained |
|---|---|---|---|---|
| Painted posts | 58 | 60 | 42 | 100 |
| Access caps | 53 | 48 | 44 | 97 |
| Close guardrails | 62 | 56 | 48 | 110 |
| Structural beams | 47 | 48 | 34 | 81 |
| Mooring bollards | 61 | 48 | 40 | 101 |
| Steel plates | 48 | 40 | 27 | 75 |
| Boat hulls | 39 | 40 | 35 | 74 |
| Distant railings | 24 | 48 | 42 | 66 |
| Pipes | 0 | 32 | 27 | 27 |
| Gates | 0 | 32 | 24 | 24 |
| Stairs | 0 | 24 | 18 | 18 |
| Containers | 0 | 24 | 22 | 22 |
| Earlier pilot · mixed scenes | 8 | 0 | 0 | 8 |
| Total | 400 | 500 | 403 | 803 |
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.
Inspect selected samples from both reviews
Four selected examples from the extension appear first, followed by the earlier review examples. They illustrate decisions and failure modes; they are not a random sample or an independent benchmark. Unless marked otherwise, the overlay shows the reviewed mask before the small-component training filter.
Move each Mask opacity slider between 0% and 100%, or choose Mask only for the binary label. Each control is independent and supports keyboard input.
Magenta: positive rust label. Cyan: its inner boundary. These colours do not encode confidence.
RGB previews are compressed WebP files, at most 960 px on the longest edge. Mask layers are lossless PNGs with nearest-neighbour resizing. Counts refer to source masks. These selected previews are not a release of the full training dataset.
New / Retained container scenes
October 24 batchNano Banana 2.1 · retained
October 24 batch · sample 193 · 1584 × 1344 source px · 2 unfiltered regions
The main ring-shaped patch preserves its intact-paint island, and the lower patch is also represented. This passed the large-error screening threshold. Small edge differences can remain in a retained candidate.
GPT Image 2.5 Sunburst · retained
October 24 batch · sample 443 · 912 × 1024 source px · 10 unfiltered regions
The large patch and its central paint island are represented, together with the smaller patch below. It is a separate generated photograph from the same scene prompt, not an image aligned pixel-for-pixel with the Nano Banana output.
New / An empty mask and a displaced mask
October 24 batch · excludedNano Banana 2.1 · excluded negative-scene request
October 24 batch · sample 209 · 1584 × 1344 source px · 0 unfiltered regions
The mask is empty, but the bollard and its base contain visible rusty damage. This sample was excluded: requesting a rust-free scene does not make the generated photograph rust-free. An empty, valid mask can still be the wrong label.
GPT Image 2.5 Sunburst · excluded
October 24 batch · sample 416 · 912 × 1024 source px · 4 unfiltered regions
The mask is shifted to the left of the corroded pipe, labels part of the wall, and leaves visible rust outside the label. A clean binary mask does not fix this spatial error; the sample was excluded.
Examples preserved from the October 16 review
The following samples and their review decisions are unchanged. The final before/after pair illustrates the first round’s component filtering.
01 / Retained: useful main patches
Two candidate training samplesNano Banana 2.1 · retained
Review sample 001 · 1584 × 1344 source px · 3 connected regions
The main exposed-rust regions and the intact-paint island are represented in approximately the right places. This passed the screening threshold for a candidate training sample; it is not a claim of perfect boundaries.
GPT Image 2.5 Sunburst · retained
Review sample 244 · 912 × 1024 source px · 4 connected regions
Both patches and the hole in the upper patch are represented. Runoff staining and the surrounding pale coating stay mostly outside the positive mask. Small contour differences were tolerated in this screening pass.
02 / Excluded: missed rust and displacement
Visible label errorsNano Banana 2.1 · excluded
Review sample 004 · 1584 × 1344 source px · 3 connected regions
A substantial visible rusty strip on the right-hand edge of the long patch is absent from the label. The mask can look plausible at a glance while still teaching the model to ignore part of the target.
GPT Image 2.5 Sunburst · excluded
Review sample 370 · 912 × 1024 source px · 20 connected regions
Around the hull openings, parts of the mask extend onto blue paint while visible rusty sections remain outside it. This was excluded for substantial displacement or missing rust, rather than accepted because the image looked realistic.
03 / Different decisions: false border and a reviewed negative
Meaning matters as well as geometryNano Banana 2.1 · excluded
Review sample 033 · 1584 × 1344 source px · 3 connected regions
The generated label includes a positive line around the image perimeter. That border is not corrosion. A binary, readable PNG can still contain an obvious semantic error; the sample was excluded.
GPT Image 2.5 Sunburst · retained negative
Review sample 424 · 912 × 1024 source px · 0 connected regions
This rust-free railing scene was retained as a negative. After visual inspection, 342 scattered positive noise pixels were explicitly cleared in the preparation record. The displayed mask includes that logged correction; it was not emptied solely because the prompt requested a negative.
04 / One retained sample, before and after cleaning
Same RGB image · two mask versionsBoth panels show the same Nano Banana 2.1 painted-post sample.
Before component filtering
Review sample 017 · 1584 × 1344 source px · 62 connected regions
This retained sample originally contained 62 connected positive regions. The broad rust patch is useful, but small isolated components inflate the region count. This panel shows the reviewed mask before the size filter.
After component filtering
Review sample 017 · 1584 × 1344 source px · 12 connected regions
Removing regions smaller than 32 source pixels leaves 12 regions and removes 458 positive pixels in this sample. The larger surviving contours and their paint-island holes are unchanged. This does not repair a displaced mask.
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.
| Split | Positive | Negative | Total | Added in extension |
|---|---|---|---|---|
| Train | 461 | 189 | 650 | 325 |
| Validation | 53 | 22 | 75 | 37 |
| Test | 56 | 22 | 78 | 41 |
| Total | 570 | 233 | 803 | 403 |
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.











