-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
MedShapeNet and example #9823
base: master
Are you sure you want to change the base?
MedShapeNet and example #9823
Conversation
“MedShapeNet is not divided by train and test by default. Therefore, train data is downloaded from the first n required number of samples, and the test data is downloaded from the last n required number of samples.” i would recommend the data be split randomly if train/val/test is not predefined |
note that CI is also failing with this issue. however, I am having trouble installing medshapenet through pip to verify if your code actually works. Is that how you install it? could you provide your setup commands? based on this i will also advise wether those instructions should be included in your code somewhere (i will decide based on the complexity of the set up instructions) |
0825c61
to
e2f7faf
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9823 +/- ##
==========================================
- Coverage 87.07% 86.31% -0.76%
==========================================
Files 490 490
Lines 32285 32280 -5
==========================================
- Hits 28112 27863 -249
- Misses 4173 4417 +244 ☔ View full report in Codecov by Sentry. |
237bd37
to
e2f7faf
Compare
a20df74
to
8a1e2d4
Compare
85fda59
to
1da4e60
Compare
9a25a82
to
028ff15
Compare
7feffdb
to
73e96d3
Compare
75d9ce2
to
033987e
Compare
Should it be |
Indeed, The problem is that MedShapeNet uses a down-grade version of numpy. By default, it downloads version I'm not sure how to proceed with this conflict. Any hint you can give will be welcome. |
@xnuohz and @puririshi98 I have talked with the MedShapeNet. Looks like they already solved the problem, I was able to run the Dataset on Python 3.10.12. Please corroborate and let me know if there is some pending issue to solve |
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.
left some comments:)
train_dataset = MedShapeNet(root=root, size=50, split="train", | ||
pre_transform=pre_transform, | ||
transform=transform, force_reload=False) | ||
print('Loading test data') | ||
test_dataset = MedShapeNet(root=root, size=50, split="test", | ||
pre_transform=pre_transform, | ||
transform=transform, force_reload=False) |
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.
can the class initialization parameter signature be consistent with other datasets? in this way it can be much simpler here
also please share the training log of this new added dataset
train_data, val_data, test_data = random_split( | ||
stl_files, [train_size, val_size, test_size]) |
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.
can we move random splits out of the dataset? imo, you need to split it in training stage.
I have added MedShapeNet dataset, adding eight classes.
The next folders were ignored from MedShapeNet Dataset due to a lack of samples:
ASOCA (n=43)
AVT (n=45)
AutoImplantCraniotomy (n=14)
FaceVR (n=14)
This Dataset requires a size number as a parameter to download the same number of samples per shape to ensure class balance.
MedShapeNet is not divided by train and test by default. Therefore, train data is downloaded from the first n required number of samples, and the test data is downloaded from the last n required number of samples.
dgcnn classification example was modified to use both ModelNet and MedShapeNet.