Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
point-transformer
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maciej Wielgosz
point-transformer
Commits
231c96f9
Commit
231c96f9
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
parallel implementation of dgcnn in pl
parent
04bde564
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dgcnn/dgcnn_train_pl.py
+3
-1
3 additions, 1 deletion
dgcnn/dgcnn_train_pl.py
with
3 additions
and
1 deletion
dgcnn/dgcnn_train_pl.py
+
3
−
1
View file @
231c96f9
...
...
@@ -6,6 +6,8 @@ from shapenet_data_dgcnn import ShapenetDataDgcnn
import
pytorch_lightning
as
pl
from
pytorch_lightning.loggers
import
WandbLogger
from
model
import
DGCNN
from
pytorch_lightning.strategies
import
DDPStrategy
...
...
@@ -54,7 +56,7 @@ dataloader = torch.utils.data.DataLoader(
wandb_logger
=
WandbLogger
(
project
=
"
dgcnn
"
,
name
=
"
dgcnn
"
,
entity
=
"
maciej-wielgosz-nibio
"
)
trainer
=
pl
.
Trainer
(
accelerator
=
"
auto
"
,
devices
=
[
0
],
max_epochs
=
3
,
logger
=
wandb_logger
,
gpus
=
1
)
trainer
=
pl
.
Trainer
(
strategy
=
DDPStrategy
(
find_unused_parameters
=
True
),
accelerator
=
"
auto
"
,
devices
=
[
0
],
max_epochs
=
3
,
logger
=
wandb_logger
,
gpus
=
1
)
# Initialize a model
model
=
DGCNNLightning
(
num_classes
=
16
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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