Skip to content

test(inductive): extend VAT/Noisy Student coverage and smoke readiness#20

Merged
melvinbarbaux merged 2 commits intomainfrom
feat/vat-noisy-student
Jan 8, 2026
Merged

test(inductive): extend VAT/Noisy Student coverage and smoke readiness#20
melvinbarbaux merged 2 commits intomainfrom
feat/vat-noisy-student

Conversation

@melvinbarbaux
Copy link
Collaborator

Summary

What does this PR change?

Checklist

  • Tests added or updated
  • CI green
  • Changelog updated
  • Documentation updated

Notes

Anything reviewers should know?

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link

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

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: 085e8a056e

ℹ️ 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 284 to 286
else:
logits_l = extract_logits(student(x_lb))
logits_us = extract_logits(student(x_us))

Choose a reason for hiding this comment

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

P2 Badge Respect freeze_bn for student forward passes

When freeze_bn=True, only the teacher forward is wrapped with freeze_batchnorm later in this loop, but the student forward on x_us (and x_lb) happens outside any freeze context. For models with BatchNorm, this still updates running stats using unlabeled data even though freeze_bn is meant to prevent that, which can skew BN statistics and change evaluation behavior (other methods like MeanTeacher/PiModel freeze BN on student unlabeled passes). Consider wrapping the student forward(s) in freeze_batchnorm when the flag is enabled.

Useful? React with 👍 / 👎.

@melvinbarbaux melvinbarbaux merged commit 15c5b55 into main Jan 8, 2026
11 checks passed
@melvinbarbaux melvinbarbaux deleted the feat/vat-noisy-student branch January 8, 2026 14:44
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