jmonas commited on
Commit
42e3e12
·
verified ·
1 Parent(s): 5e3176c

Update test_v2.0/fake_compression_submission/create_fake_submission.py

Browse files
test_v2.0/fake_compression_submission/create_fake_submission.py CHANGED
@@ -14,7 +14,6 @@ def generate_fake_submission(num_samples=450, shape=(3, 32, 32), k=500):
14
  submission_dir = "temp_submission"
15
  os.makedirs(submission_dir, exist_ok=True)
16
 
17
- # 1) A minimal README.txt with metadata
18
  readme_content = (
19
  '{\n'
20
  ' "method": "example_method",\n'
@@ -28,7 +27,7 @@ def generate_fake_submission(num_samples=450, shape=(3, 32, 32), k=500):
28
  with open(os.path.join(submission_dir, "README.txt"), "w") as f:
29
  f.write(readme_content)
30
 
31
- # 2) For each of the 500 samples, create random (T,H,W,500) arrays
32
  for sample_id in range(num_samples):
33
  topk_indices = np.random.randint(0, 64000, size=(shape[0], shape[1], shape[2], k), dtype=np.int32)
34
  topk_values = np.random.randn(shape[0], shape[1], shape[2], k).astype(np.float32)
 
14
  submission_dir = "temp_submission"
15
  os.makedirs(submission_dir, exist_ok=True)
16
 
 
17
  readme_content = (
18
  '{\n'
19
  ' "method": "example_method",\n'
 
27
  with open(os.path.join(submission_dir, "README.txt"), "w") as f:
28
  f.write(readme_content)
29
 
30
+ # For each of the 500 samples, create random (T,H,W,500) arrays
31
  for sample_id in range(num_samples):
32
  topk_indices = np.random.randint(0, 64000, size=(shape[0], shape[1], shape[2], k), dtype=np.int32)
33
  topk_values = np.random.randn(shape[0], shape[1], shape[2], k).astype(np.float32)