feat: DINOv2 vitl14 fallback when DINOv3 gated access is pending - #15
Open
perasang wants to merge 1 commit into
Open
feat: DINOv2 vitl14 fallback when DINOv3 gated access is pending#15perasang wants to merge 1 commit into
perasang wants to merge 1 commit into
Conversation
When DINOv3 access is pending Meta review, set USE_DINOV2_FALLBACK=1 to substitute DINOv2 vitl14 at 448px (32×32 patches = 1025 tokens), matching DINOv3 vitl16 token count so the pipeline runs without errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
USE_DINOV2_FALLBACK=1env var ingenerate.pythat swaps the DINOv3 image conditioning model for DINOv2 vitl14Motivation
facebook/dinov3-vitl16-pretrain-lvd1689mis a gated Meta model that requires manual review before access is granted. New users are blocked at first run until approval arrives. This fallback lets them test the full pipeline immediately using the publicly available DINOv2 vitl14 weights (~330 MB vs ~1 GB for DINOv3).Usage
Trade-offs
Test plan
python generate.py(no env var) — behaviour unchanged, DINOv3 path usedUSE_DINOV2_FALLBACK=1 python generate.py assets/shoe_input.png— pipeline loads DINOv2, runs to completion, outputs.glb🤖 Generated with Claude Code