Skip to content
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

How to set source batch and target batch to fetch data as the data order in ImageSets. #86

Open
RhythmOfTheRain-Byte opened this issue Mar 26, 2024 · 0 comments

Comments

@RhythmOfTheRain-Byte
Copy link

RhythmOfTheRain-Byte commented Mar 26, 2024

Excues me,could you help me solve the problem.
I want to set both source batch and target batch to fetch data as the order in ImageSets. But When shuffle is set to false, this goal still cannot be achieved. May I ask how to solve it.

dataloader=DataLoader in pcdet/datasets/__ init__. py(
Dataset, batch size=batch size, pin_memory=True, num_workers=workers,
Shuffle=(sampler is None) and training, collate_fn=dataset. collate_batch,
#Droplast=True, sampler=sampler, timeout=0
Droplast=False, sampler=sampler, timeout=0

For example , the ImageSets is the same for both source dataset and target dataset and part of ImageSets is as fellows :
2019-09-11_18-41-27,02580
2019-09-11_18-56-46,01920
2018-02-17_10-31-08,00400
2019-09-11_19-09-25,00420
2019-09-11_17-36-19,00480
2018-02-05_12-15-36,00000
2019-09-11_17-45-16,01560
2019-09-11_19-13-44,00180
2019-09-11_17-20-55,00420
2018-02-05_12-06-04,00300
2019-09-11_17-45-16,00000
2019-09-11_18-38-35,00150
The batch size is set as 4, when the train is executated:
the frame id in source_batch is :
0:
'2018-02-04_21-42-09_00100'
1:
'2018-02-09_11-20-33_00100'
2:
'2019-09-11_18-56-46_00060'
3:
'2018-12-13_15-31-33_01200'
while the frame id in target_batch is :
0:
'2018-12-13_15-39-55_00300'
1:
'2018-12-22_15-01-45_02600'
2:
'2019-05-02_21-18-08_03390'
3:
'2019-05-02_18-30-47_01230'
how to set the same frame id in source_batch and target_batch for each batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant