compute_priors function on data_generation module is a little bit convoluted. The matching of priors to segments should be on other function because we will end-up duplicating code if all the segments of the dataset are not used to compute priors. That is the case of ActivityNet where there is an explicit validation set.
Similar refactoring should be done on tool create_dataset.py
compute_priors
function ondata_generation
module is a little bit convoluted. The matching of priors to segments should be on other function because we will end-up duplicating code if all the segments of the dataset are not used to compute priors. That is the case of ActivityNet where there is an explicit validation set.Similar refactoring should be done on tool
create_dataset.py