xiaohk commited on
Commit
406b324
1 Parent(s): f4878db

Change hf_hub_url() call

Browse files
Files changed (1) hide show
  1. diffusiondb.py +11 -5
diffusiondb.py CHANGED
@@ -47,28 +47,34 @@ _PART_IDS_LARGE = range(1, 14001)
47
 
48
  for i in _PART_IDS:
49
  _URLS[i] = hf_hub_url(
50
- "datasets/poloclub/diffusiondb", filename=f"images/part-{i:06}.zip"
 
 
51
  )
52
 
53
  for i in _PART_IDS_LARGE:
54
  if i < 10001:
55
  _URLS_LARGE[i] = hf_hub_url(
56
- "datasets/poloclub/diffusiondb",
57
  filename=f"diffusiondb-large-part-1/part-{i:06}.zip",
 
58
  )
59
  else:
60
  _URLS_LARGE[i] = hf_hub_url(
61
- "datasets/poloclub/diffusiondb",
62
  filename=f"diffusiondb-large-part-2/part-{i:06}.zip",
 
63
  )
64
 
65
  # Add the metadata parquet URL as well
66
  _URLS["metadata"] = hf_hub_url(
67
- "datasets/poloclub/diffusiondb", filename="metadata.parquet"
68
  )
69
 
70
  _URLS_LARGE["metadata"] = hf_hub_url(
71
- "datasets/poloclub/diffusiondb", filename="metadata-large.parquet"
 
 
72
  )
73
 
74
  _SAMPLER_DICT = {
 
47
 
48
  for i in _PART_IDS:
49
  _URLS[i] = hf_hub_url(
50
+ "poloclub/diffusiondb",
51
+ filename=f"images/part-{i:06}.zip",
52
+ repo_type="dataset",
53
  )
54
 
55
  for i in _PART_IDS_LARGE:
56
  if i < 10001:
57
  _URLS_LARGE[i] = hf_hub_url(
58
+ "poloclub/diffusiondb",
59
  filename=f"diffusiondb-large-part-1/part-{i:06}.zip",
60
+ repo_type="dataset",
61
  )
62
  else:
63
  _URLS_LARGE[i] = hf_hub_url(
64
+ "poloclub/diffusiondb",
65
  filename=f"diffusiondb-large-part-2/part-{i:06}.zip",
66
+ repo_type="dataset",
67
  )
68
 
69
  # Add the metadata parquet URL as well
70
  _URLS["metadata"] = hf_hub_url(
71
+ "poloclub/diffusiondb", filename="metadata.parquet", repo_type="dataset"
72
  )
73
 
74
  _URLS_LARGE["metadata"] = hf_hub_url(
75
+ "poloclub/diffusiondb",
76
+ filename="metadata-large.parquet",
77
+ repo_type="dataset",
78
  )
79
 
80
  _SAMPLER_DICT = {