Skip to content

Commit 50aef28

Browse files
committed
Fix incorrect use of dataset fraction in dataparsers
1 parent 15a3e7e commit 50aef28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nerfstudio/data/dataparsers/ad_dataparser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def _filter_based_on_time(
276276
end_time = times.max().item()
277277
start_time = times.min().item()
278278
duration = end_time - start_time
279-
start_time += duration * self.config.dataset_start_fraction
280279
end_time = start_time + duration * self.config.dataset_end_fraction
280+
start_time += duration * self.config.dataset_start_fraction
281281

282282
cameras, img_filenames = _filter_sensordata_on_time(cameras, img_filenames, start_time, end_time)
283283
lidars, pc_filenames = _filter_sensordata_on_time(lidars, pc_filenames, start_time, end_time)

0 commit comments

Comments
 (0)