"sgl-kernel/vscode:/vscode.git/clone" did not exist on "a2ffdd604e4b1e3fbb54d90c1ea555b597fa5ed0"
Unverified Commit a23f0158 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Fix quantized classif reference - missing args (#7072)

parent 43df72f1
......@@ -128,10 +128,12 @@ def load_data(traindir, valdir, args):
print(f"Loading dataset_train from {cache_path}")
dataset, _ = torch.load(cache_path)
else:
# We need a default value for the variables below because args may come
# from train_quantization.py which doesn't define them.
auto_augment_policy = getattr(args, "auto_augment", None)
random_erase_prob = getattr(args, "random_erase", 0.0)
ra_magnitude = args.ra_magnitude
augmix_severity = args.augmix_severity
ra_magnitude = getattr(args, "ra_magnitude", None)
augmix_severity = getattr(args, "augmix_severity", None)
dataset = torchvision.datasets.ImageFolder(
traindir,
presets.ClassificationPresetTrain(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment