Skip to content

add 4-class fiber/ink self-distillation trainer (scripts/fiber_5class)#985

Merged
giorgioangel merged 1 commit into
mainfrom
feature/fiber-5class-paris4-full-features
Jul 2, 2026
Merged

add 4-class fiber/ink self-distillation trainer (scripts/fiber_5class)#985
giorgioangel merged 1 commit into
mainfrom
feature/fiber-5class-paris4-full-features

Conversation

@giorgioangel

Copy link
Copy Markdown
Member

3D UNet for bg / vertical fiber / horizontal-angular fiber / ink, self-distilled from frozen fiber+ink teachers (no GT). Per-crop GPU pseudo-labels: fiber prob -> cuws watershed -> per-instance PCA orientation split; ink overrides fibers; raw<90 forced to background.

3D UNet for bg / vertical fiber / horizontal-angular fiber / ink, self-distilled
from frozen fiber+ink teachers (no GT). Per-crop GPU pseudo-labels: fiber prob
-> cuws watershed -> per-instance PCA orientation split; ink overrides fibers;
raw<90 forced to background.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
scrollprize-org Ignored Ignored May 26, 2026 8:06pm

Request Review

@giorgioangel giorgioangel marked this pull request as ready for review July 2, 2026 12:35
@giorgioangel giorgioangel merged commit 7a185f3 into main Jul 2, 2026
30 of 31 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4140564b28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +163 to +169
model = build_fiber_unet(
crop_size=crop_size,
target_name=target_name,
out_channels=out_channels,
activation=activation,
in_channels=in_channels,
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Rebuild teachers from their checkpoint config

When a frozen teacher checkpoint was trained with any non-default NetworkFromConfig layout (for example guided, MedNeXt, or manual-width configs stored in the repo's model_config/config checkpoints), this rebuilds a default autoconfig UNet using only the target name and channel count, then loads with strict=False. Missing or unexpected non-head weights are only printed, so pseudo-label generation can silently run with an untrained or differently wired teacher instead of reconstructing the checkpoint architecture or failing.

Useful? React with 👍 / 👎.

payload = {
"model": student_module.state_dict(),
"optimizer": optimizer.state_dict(),
"step": step,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Record the next step when checkpointing

This payload is written after the optimizer update for the current loop iteration, so storing step makes resumes replay a step that has already been completed (for example, a checkpoint saved at loop step 1000 resumes with step=1000). The same off-by-one means the example num_iterations=30000/save_every=1000 run never writes a checkpoint for the final completed boundary; use step + 1 for the saved progress/trigger or add an explicit final save.

Useful? React with 👍 / 👎.

@giorgioangel giorgioangel deleted the feature/fiber-5class-paris4-full-features branch July 2, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant