Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qim3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Show more breadcrumbs
QIM
Tools
qim3d
Commits
a695f8d0
Commit
a695f8d0
authored
1 year ago
by
ofhkr
Browse files
Options
Downloads
Patches
Plain Diff
changed pin_workers to 0 by default: faster dataloader
parent
2e94eb52
No related branches found
No related tags found
1 merge request
!47
(Work in progress) Implementation of adaptive Dataset class which adapts to different data structures
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qim3d/utils/data.py
+1
-1
1 addition, 1 deletion
qim3d/utils/data.py
with
1 addition
and
1 deletion
qim3d/utils/data.py
+
1
−
1
View file @
a695f8d0
...
...
@@ -174,7 +174,7 @@ def prepare_datasets(path: str, val_fraction: float, model, augmentation):
return
train_set
,
val_set
,
test_set
def
prepare_dataloaders
(
train_set
,
val_set
,
test_set
,
batch_size
,
shuffle_train
=
True
,
num_workers
=
8
,
pin_memory
=
False
):
def
prepare_dataloaders
(
train_set
,
val_set
,
test_set
,
batch_size
,
shuffle_train
=
True
,
num_workers
=
0
,
pin_memory
=
False
):
"""
Prepares the dataloaders for model training.
...
...
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