jamescalam commited on
Commit
0b8ac77
1 Parent(s): c62b2d7

Update unsplash-25k-photos.py

Browse files
Files changed (1) hide show
  1. unsplash-25k-photos.py +31 -6
unsplash-25k-photos.py CHANGED
@@ -25,12 +25,37 @@ class Unsplash(datasets.GeneratorBasedBuilder):
25
  description=_DESCRIPTION,
26
  features=datasets.Features(
27
  {
28
- "imdb_id": datasets.Value("string"),
29
- "movie_id": datasets.Value("int32"),
30
- "user_id": datasets.Value("int32"),
31
- "rating": datasets.Value("float32"),
32
- "title": datasets.Value("string"),
33
- "year": datasets.Value("int32"),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
  ),
36
  supervised_keys=None,
 
25
  description=_DESCRIPTION,
26
  features=datasets.Features(
27
  {
28
+ 'photo_id': datasets.Value("string"),
29
+ 'photo_url': datasets.Value("string"),
30
+ 'photo_image_url': datasets.Value("string"),
31
+ 'photo_submitted_at': datasets.Value("string"),
32
+ 'photo_featured': datasets.Value("string"),
33
+ 'photo_width': datasets.Value("int32"),
34
+ 'photo_height': datasets.Value("int32"),
35
+ 'photo_aspect_ratio': datasets.Value("float32"),
36
+ 'photo_description': datasets.Value("string"),
37
+ 'photographer_username': datasets.Value("string"),
38
+ 'photographer_first_name': datasets.Value("string"),
39
+ 'photographer_last_name': datasets.Value("string"),
40
+ 'exif_camera_make': datasets.Value("string"),
41
+ 'exif_camera_model': datasets.Value("string"),
42
+ 'exif_iso': datasets.Value("float32"),
43
+ 'exif_aperture_value': datasets.Value("float32"),
44
+ 'exif_focal_length': datasets.Value("float32"),
45
+ 'exif_exposure_time': datasets.Value("string"),
46
+ 'photo_location_name': datasets.Value("float32"),
47
+ 'photo_location_latitude': datasets.Value("float32"),
48
+ 'photo_location_longitude': datasets.Value("float32"),
49
+ 'photo_location_country': datasets.Value("string"),
50
+ 'photo_location_city': datasets.Value("string"),
51
+ 'stats_views': datasets.Value("int32"),
52
+ 'stats_downloads': datasets.Value("int32"),
53
+ 'ai_description': datasets.Value("string"),
54
+ 'ai_primary_landmark_name': datasets.Value("string"),
55
+ 'ai_primary_landmark_latitude': datasets.Value("float32"),
56
+ 'ai_primary_landmark_longitude': datasets.Value("float32"),
57
+ 'ai_primary_landmark_confidence': datasets.Value("float32"),
58
+ 'blur_hash': datasets.Value("string"),
59
  }
60
  ),
61
  supervised_keys=None,