-
Notifications
You must be signed in to change notification settings - Fork 16
Update download link #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,3 +16,4 @@ timm | |
| pytorch-ignite | ||
| tensorboardX | ||
| mlflow | ||
| huggingface_hub | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -25,7 +25,10 @@ pip install -r requirements.txt | |||||||||||||||||||||
| # Create models directory and download pretrained model | ||||||||||||||||||||||
| cd .. | ||||||||||||||||||||||
| mkdir -p NV-Segment-CTMR/models | ||||||||||||||||||||||
| wget -O NV-Segment-CTMR/models/model.pt https://huggingface.co/nvidia/NV-Segment-CTMR/resolve/main/vista3d_pretrained_model/model.pt | ||||||||||||||||||||||
| # Option 1: Download using hf and move to expected location | ||||||||||||||||||||||
| hf download nvidia/NV-Segment-CTMR vista3d_pretrained_model/model.pt --local-dir NV-Segment-CTMR/models/ && \ | ||||||||||||||||||||||
| mv NV-Segment-CTMR/models/vista3d_pretrained_model/model.pt NV-Segment-CTMR/models/model.pt && \ | ||||||||||||||||||||||
| rmdir NV-Segment-CTMR/models/vista3d_pretrained_model | ||||||||||||||||||||||
|
Comment on lines
+28
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Option 1" label without a corresponding "Option 2" The comment labels this step as
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Same concern as in
Suggested change
|
||||||||||||||||||||||
| ``` | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| ## Automatic Segmentation (support multi-gpu batch processing) | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rmdirmay fail if extra files are presentrmdironly succeeds on empty directories. Depending on the version ofhuggingface_hub, the--local-dirdownload may also create additional metadata files (e.g.,.gitattributes, lock files) insidevista3d_pretrained_model/, causingrmdirto fail silently (or halt the script withset -e). Usingrm -rfwould be more robust: