jainr3 commited on
Commit
9833ff8
1 Parent(s): d82b204

Update diffusiondb-pixelart.py

Browse files
Files changed (1) hide show
  1. diffusiondb-pixelart.py +6 -6
diffusiondb-pixelart.py CHANGED
@@ -39,7 +39,7 @@ _VERSION = datasets.Version("0.9.1")
39
 
40
  # Programmatically generate the URLs for different parts
41
  # hf_hub_url() provides a more flexible way to resolve the file URLs
42
- # https://huggingface.co/datasets/poloclub/diffusiondb/resolve/main/images/part-000001.zip
43
  _URLS = {}
44
  _URLS_LARGE = {}
45
  _PART_IDS = range(1, 2001)
@@ -47,7 +47,7 @@ _PART_IDS_LARGE = range(1, 14001)
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
  )
@@ -55,24 +55,24 @@ for i in _PART_IDS:
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
  )
 
39
 
40
  # Programmatically generate the URLs for different parts
41
  # hf_hub_url() provides a more flexible way to resolve the file URLs
42
+ # https://huggingface.co/datasets/jainr3/diffusiondb-pixelart/resolve/main/images/part-000001.zip
43
  _URLS = {}
44
  _URLS_LARGE = {}
45
  _PART_IDS = range(1, 2001)
 
47
 
48
  for i in _PART_IDS:
49
  _URLS[i] = hf_hub_url(
50
+ "jainr3/diffusiondb-pixelart",
51
  filename=f"images/part-{i:06}.zip",
52
  repo_type="dataset",
53
  )
 
55
  for i in _PART_IDS_LARGE:
56
  if i < 10001:
57
  _URLS_LARGE[i] = hf_hub_url(
58
+ "jainr3/diffusiondb-pixelart",
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
+ "jainr3/diffusiondb-pixelart",
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
+ "jainr3/diffusiondb-pixelart", filename="metadata.parquet", repo_type="dataset"
72
  )
73
 
74
  _URLS_LARGE["metadata"] = hf_hub_url(
75
+ "jainr3/diffusiondb-pixelart",
76
  filename="metadata-large.parquet",
77
  repo_type="dataset",
78
  )