Repository navigation
Added model, training and data preparation features #149
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3c13e25
experiments with larger patch size 100m and a combination of losses
95799c4
add strict=False to load ckpt even with new loss definition
7a64028
change step counting in onecyclelr
fc34c9c
add external model capacity scaling and focal loss
6fda7ea
baking deterministic transforms in the hdf5 and lowering point budget…
e4f2ea8
add class weights to focal loss
fb4fe2d
merge with main update CHANGELOG
5b9529e
remove unused variable
a249a6c
version to 3.9.2
7979f1e
merge with main and add tests and model config and ckpt
1b7796e
added tests and refactor config as well as tests
f2493e9
remove per_sample to adapt lovasz loss for point clouds exclusively
680039b
remove some overlapping tests
9e5d82b
test run on available models in trained_model_assets
2a1074b
remove batch size computation as it is present in the config file
d651a25
remove batch_size as it read from the config file
c098c66
raise error when no confid is matched to a ckpt
29cb158
config reading not necessary
2be4188
remove yaml import
a615431
style: apply pre-commit hooks to all files
6c025a5
Merge branch 'main' into feature_mac
leavauchier ae6536c
Fix changelog after merge issue
leavauchier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,5 +12,3 @@ | |
| "runArgs": ["--gpus", "all", "--shm-size=8g"], | ||
| "remoteUser": "root" | ||
| } | ||
|
|
||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,4 +11,4 @@ htmlcov | |
| build/ | ||
| dist/ | ||
| *.egg-info | ||
| *.egg | ||
| *.egg | ||
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| defaults: | ||
| - default.yaml | ||
|
|
||
| # Override | ||
| # Override | ||
| finetune: | ||
| _target_: myria3d.callbacks.finetuning_callbacks.FinetuningFreezeUnfreeze | ||
| d_in: ${model.d_in} | ||
| num_classes: ${model.num_classes} | ||
| unfreeze_fc_end_epoch: ??? # full end fc is unfrozen later than the last MLP. | ||
| unfreeze_decoder_train_epoch: ??? # decoder is unfrozen later than last FC layer. | ||
| unfreeze_fc_end_epoch: ??? # full end fc is unfrozen later than the last MLP. | ||
| unfreeze_decoder_train_epoch: ??? # decoder is unfrozen later than last FC layer. |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,9 @@ x_flip: | |
| _args_: | ||
| - 0 | ||
| p: 0.5 | ||
|
|
||
| y_flip: | ||
| _target_: torch_geometric.transforms.RandomFlip | ||
| _args_: | ||
| - 1 | ||
| p: 0.5 | ||
| p: 0.5 | ||
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
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
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
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
8 changes: 8 additions & 0 deletions
8
configs/datamodule/transforms/preparations/points_budget_patch_100mx100m.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Same preparations as points_budget.yaml, but with a larger points budget suited | ||
| # to 100m x 100m patches. It inherits everything from points_budget.yaml and only | ||
| # overrides the single value that differs between the two: max_num_nodes. | ||
| defaults: | ||
| - points_budget | ||
| - _self_ | ||
|
|
||
| max_num_nodes: 120000 |
8 changes: 4 additions & 4 deletions
8
configs/dataset_description/20220204_BuildingValidation_and_Ground.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| _convert_: all # For omegaconf struct to be converted to python dictionnaries | ||
| _convert_: all # For omegaconf struct to be converted to python dictionnaries | ||
| # classification_preprocessing_dict = {source_class_code_int: target_class_code_int}, | ||
| classification_preprocessing_dict: {59: 6, 50: 1} | ||
| classification_preprocessing_dict: { 59: 6, 50: 1 } | ||
| # classification_dict = {code_int: name_str, ...} and MUST be sorted (increasing order). | ||
| classification_dict: {1: "unclassified", 2: "ground", 6: "building"} | ||
| classification_dict: { 1: "unclassified", 2: "ground", 6: "building" } | ||
|
|
||
| # Input and output dims of neural net are dataset dependant: | ||
| d_in: 12 | ||
| num_classes: 3 | ||
| num_classes: 3 |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.