Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepdraw
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
medai
software
deepdraw
Commits
40f7f419
Commit
40f7f419
authored
5 years ago
by
Tim Laibacher
Browse files
Options
Downloads
Patches
Plain Diff
Add configs
parent
79b59ab8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Ssl
Pipeline
#31352
failed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/ip/binseg/configs/datasets/drivestareiostarhrf960sslchase.py
+35
-0
35 additions, 0 deletions
...binseg/configs/datasets/drivestareiostarhrf960sslchase.py
bob/ip/binseg/configs/datasets/hrf960.py
+24
-0
24 additions, 0 deletions
bob/ip/binseg/configs/datasets/hrf960.py
with
59 additions
and
0 deletions
bob/ip/binseg/configs/datasets/drivestareiostarhrf960sslchase.py
0 → 100644
+
35
−
0
View file @
40f7f419
from
bob.ip.binseg.configs.datasets.drive960
import
dataset
as
drive
from
bob.ip.binseg.configs.datasets.stare960
import
dataset
as
stare
from
bob.ip.binseg.configs.datasets.hrf960
import
dataset
as
hrf
from
bob.ip.binseg.configs.datasets.iostarvessel960
import
dataset
as
iostar
from
bob.db.chasedb1
import
Database
as
CHASE
from
bob.db.hrf
import
Database
as
HRF
from
bob.ip.binseg.data.transforms
import
*
import
torch
from
bob.ip.binseg.data.binsegdataset
import
BinSegDataset
,
SSLBinSegDataset
,
UnLabeledBinSegDataset
#### Config ####
# PyTorch dataset
labeled_dataset
=
torch
.
utils
.
data
.
ConcatDataset
([
drive
,
stare
,
hrf
,
iostar
])
#### Unlabeled CHASE TRAIN ####
unlabeled_transforms
=
Compose
([
Crop
(
0
,
18
,
960
,
960
)
,
RandomHFlip
()
,
RandomVFlip
()
,
RandomRotation
()
,
ColorJitter
()
,
ToTensor
()
])
# bob.db.dataset init
chasebobdb
=
CHASE
(
protocol
=
'
default
'
)
# PyTorch dataset
unlabeled_dataset
=
UnLabeledBinSegDataset
(
chasebobdb
,
split
=
'
train
'
,
transform
=
unlabeled_transforms
)
# SSL Dataset
dataset
=
SSLBinSegDataset
(
labeled_dataset
,
unlabeled_dataset
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bob/ip/binseg/configs/datasets/hrf960.py
0 → 100644
+
24
−
0
View file @
40f7f419
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from
bob.db.hrf
import
Database
as
HRF
from
bob.ip.binseg.data.transforms
import
*
from
bob.ip.binseg.data.binsegdataset
import
BinSegDataset
#### Config ####
transforms
=
Compose
([
Pad
((
0
,
584
,
0
,
584
))
,
Resize
((
960
))
,
RandomRotation
()
,
RandomHFlip
()
,
RandomVFlip
()
,
ColorJitter
()
,
ToTensor
()
])
# bob.db.dataset init
bobdb
=
HRF
(
protocol
=
'
default
'
)
# PyTorch dataset
dataset
=
BinSegDataset
(
bobdb
,
split
=
'
train
'
,
transform
=
transforms
)
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