Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADPKD Segmentation
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
UT Southwestern Flywheel Technical Development
GPU Gears
ADPKD Segmentation
Commits
1a8a58e5
Commit
1a8a58e5
authored
1 year ago
by
Matthew Lewis
Browse files
Options
Downloads
Patches
Plain Diff
added CUDA check
parent
4940569c
Branches
main
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifest.json
+2
-2
2 additions, 2 deletions
manifest.json
run.py
+3
-1
3 additions, 1 deletion
run.py
with
5 additions
and
3 deletions
manifest.json
+
2
−
2
View file @
1a8a58e5
...
...
@@ -2,7 +2,7 @@
"name"
:
"adpkd-segmentation"
,
"label"
:
"ADPKD segmentation"
,
"description"
:
"ADPKD-segmentation for determing Total Kidney Volume - TKV (https://github.com/aksg87/adpkd-segmentation-pytorch) - CPU only"
,
"version"
:
"0.
1
_gpu"
,
"version"
:
"0.
2
_gpu"
,
"author"
:
"Radiology @ UTSW"
,
"maintainer"
:
"Matthew Lewis <Matthew.Lewis@UTSouthwestern.edu>"
,
"cite"
:
""
,
...
...
@@ -23,7 +23,7 @@
},
"gear-builder"
:
{
"category"
:
"analysis"
,
"image"
:
"ai/adpkd-segmentation:0.
1
_gpu"
"image"
:
"ai/adpkd-segmentation:0.
2
_gpu"
}
},
"inputs"
:
{
...
...
This diff is collapsed.
Click to expand it.
run.py
+
3
−
1
View file @
1a8a58e5
...
...
@@ -5,7 +5,8 @@ import os
import
logging
import
sys
import
shutil
import
glob
import
glob
import
torch
from
flywheel_gear_toolkit
import
GearToolkitContext
import
flywheel
...
...
@@ -13,6 +14,7 @@ import flywheel
log
=
logging
.
getLogger
(
__name__
)
def
main
(
context
):
print
(
'
Is CUDA available for PyTorch?
'
,
torch
.
cuda
.
is_available
(),
flush
=
True
)
# print(dir(context))
print
(
"
config_json:
"
)
print
(
context
.
config_json
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment