Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
edenn+
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hernandez Diaz, Alejandro (PG/R - Comp Sci & Elec Eng)
edenn+
Commits
fe18a2aa
Commit
fe18a2aa
authored
1 year ago
by
Hernandez Diaz, Alejandro (PG/R - Comp Sci & Elec Eng)
Browse files
Options
Downloads
Patches
Plain Diff
noooo
parent
6aa18924
Branches
main
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
alex_trainL.py
+2
-1
2 additions, 1 deletion
alex_trainL.py
edenn/datasets/dsec.py
+1
-4
1 addition, 4 deletions
edenn/datasets/dsec.py
with
3 additions
and
5 deletions
alex_trainL.py
+
2
−
1
View file @
fe18a2aa
...
...
@@ -80,7 +80,7 @@ def train_model(args, model_id, dataset_id):
# List full of individual sequence dataset objects. Iterate through sequence names creating datasets.
seq_datasets
=
[]
for
sample
in
seq_names
:
#
print(sample)
print
(
sample
)
# Take a smaller spatial crop to get more granularity in the temporal dimension. (same crop as in E-RAFT)
seq_datasets
.
append
(
SequenceEDENN
(
Path
(
root_folder
),
sample
,
num_bins
=
args
.
n_bins
,
crop_window
=
(
288
,
384
),
mode
=
"
val
"
))
...
...
@@ -90,6 +90,7 @@ def train_model(args, model_id, dataset_id):
val_data
=
ConcatDataset
(
seq_datasets
[:
1
])
print
(
train_data
)
print
(
val_data
)
train_loader
=
DataLoader
(
train_data
,
batch_size
=
args
.
batch_size
,
num_workers
=
1
,
shuffle
=
False
,
pin_memory
=
True
)
val_loader
=
DataLoader
(
train_data
,
batch_size
=
args
.
batch_size
,
num_workers
=
1
,
shuffle
=
False
,
pin_memory
=
True
)
...
...
This diff is collapsed.
Click to expand it.
edenn/datasets/dsec.py
+
1
−
4
View file @
fe18a2aa
...
...
@@ -201,10 +201,7 @@ class SequenceEDENN(Dataset):
print
(
self
.
flow_names
[
index
])
print
(
self
.
flow_root
)
ts_start
=
self
.
flow_timestamps
[
index
][
0
]
ts_end
=
self
.
flow_timestamps
[
index
][
1
]
print
(
ts_start
)
print
(
ts_end
)
ts_end
=
self
.
flow_timestamps
[
index
][
1
]
# Get specific event slice
event_data
=
self
.
event_slicer
.
get_events
(
ts_start
,
ts_end
)
...
...
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