|
|
@ -83,6 +83,9 @@ def check_mnist_cifar_dataset(method):
|
|
|
|
|
|
|
|
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -110,6 +113,9 @@ def check_manifestdataset(method):
|
|
|
|
|
|
|
|
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -180,6 +186,9 @@ def check_vocdataset(method):
|
|
|
|
validate_dataset_param_value(nreq_param_dict, param_dict, dict)
|
|
|
|
validate_dataset_param_value(nreq_param_dict, param_dict, dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -216,6 +225,9 @@ def check_cocodataset(method):
|
|
|
|
raise ValueError("CocoDataset doesn't support PKSampler")
|
|
|
|
raise ValueError("CocoDataset doesn't support PKSampler")
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -252,6 +264,9 @@ def check_celebadataset(method):
|
|
|
|
if sampler is not None and isinstance(sampler, samplers.PKSampler):
|
|
|
|
if sampler is not None and isinstance(sampler, samplers.PKSampler):
|
|
|
|
raise ValueError("CelebADataset does not support PKSampler.")
|
|
|
|
raise ValueError("CelebADataset does not support PKSampler.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -842,6 +857,9 @@ def check_cluedataset(method):
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -885,6 +903,9 @@ def check_csvdataset(method):
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
@ -904,6 +925,9 @@ def check_textfiledataset(method):
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
validate_dataset_param_value(nreq_param_int, param_dict, int)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
check_sampler_shuffle_shard_options(param_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cache = param_dict.get('cache')
|
|
|
|
|
|
|
|
check_cache_option(cache)
|
|
|
|
|
|
|
|
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
return method(self, *args, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
return new_method
|
|
|
|
return new_method
|
|
|
|