mathiaszinnen commited on
Commit
5323f77
·
1 Parent(s): 7c887b1

link zenodo repo

Browse files
Files changed (1) hide show
  1. odor.py +4 -2
odor.py CHANGED
@@ -36,6 +36,7 @@ _HOMEPAGE = "https://zenodo.org/record/8398464"
36
 
37
  _LICENSE = "Unknown"
38
 
 
39
 
40
  _CATEGORIES = ['ant', 'camel', 'jewellery', 'frog', 'physalis', 'celery', 'cauliflower', 'pepper', 'ranunculus', 'chess flower', 'cigarette', 'matthiola', 'cabbage', 'earring', 'dandelion', 'neroli', 'dragonfly', 'hyacinth', 'reptile/amphibia', 'apricot', 'snake', 'lizard', 'asparagus', 'spring onion', 'snowflake', 'moth', 'poppy', 'columbine', 'rabbit', 'geranium', 'crab', 'radish', 'big cat', 'jan steen jug', 'monkey', 'snail', 'bellflower', 'lilac', 'pot', 'peony', 'coffeepot', 'hazelnut', 'censer', 'artichoke', 'dahlia', 'sniffing', 'fly', 'deer', 'caterpillar', 'garlic', 'blackberry', 'chalice', 'lobster', 'necklace', 'bug', 'insect', 'prawn', 'bracelet', 'carrot', 'cornflower', 'pumpkin', 'orange', 'walnut', 'cat', 'daisy', 'forget-me-not', 'carafe', 'match', 'beer stein', 'tobacco-box', 'violet', 'pomander', 'bottle', 'candle', 'heliotrope', 'wine bottle', 'strawberry', 'pomegranate', 'whale', 'lily of the valley', 'iris', 'tobacco', 'olive', 'tobacco-packaging', 'meat', 'daffodil', 'melon', 'fire', 'petunia', 'mushroom', 'teapot', 'ring', 'pig', 'ashtray', 'cheese', 'onion', 'cup', 'nut', 'fig', 'drinking vessel', 'donkey', 'holding the nose', 'lily', 'smoke', 'bread', 'currant', 'glass without stem', 'anemone', 'mammal', 'chimney', 'smoking equipment', 'bivalve', 'butterfly', 'gloves', 'lemon', 'horse', 'plum', 'jasmine', 'pear', 'glass with stem', 'vegetable', 'carnation', 'jug', 'goat', 'fish', 'apple', 'tulip', 'cherry', 'cow', 'animal corpse', 'dog', 'fruit', 'bird', 'rose', 'peach', 'sheep', 'pipe', 'grapes', 'flower']
41
 
@@ -71,8 +72,9 @@ class ODOR(datasets.GeneratorBasedBuilder):
71
  )
72
 
73
  def _split_generators(self, dl_manager):
74
- df_meta = pd.read_csv('meta/meta.csv')
75
- dl_manager.download(df_meta['Image Credits'].values)
 
76
 
77
  return [
78
  datasets.SplitGenerator(
 
36
 
37
  _LICENSE = "Unknown"
38
 
39
+ _URL = "https://zenodo.org/record/8398464/files/odor-dataset.zip?download=1"
40
 
41
  _CATEGORIES = ['ant', 'camel', 'jewellery', 'frog', 'physalis', 'celery', 'cauliflower', 'pepper', 'ranunculus', 'chess flower', 'cigarette', 'matthiola', 'cabbage', 'earring', 'dandelion', 'neroli', 'dragonfly', 'hyacinth', 'reptile/amphibia', 'apricot', 'snake', 'lizard', 'asparagus', 'spring onion', 'snowflake', 'moth', 'poppy', 'columbine', 'rabbit', 'geranium', 'crab', 'radish', 'big cat', 'jan steen jug', 'monkey', 'snail', 'bellflower', 'lilac', 'pot', 'peony', 'coffeepot', 'hazelnut', 'censer', 'artichoke', 'dahlia', 'sniffing', 'fly', 'deer', 'caterpillar', 'garlic', 'blackberry', 'chalice', 'lobster', 'necklace', 'bug', 'insect', 'prawn', 'bracelet', 'carrot', 'cornflower', 'pumpkin', 'orange', 'walnut', 'cat', 'daisy', 'forget-me-not', 'carafe', 'match', 'beer stein', 'tobacco-box', 'violet', 'pomander', 'bottle', 'candle', 'heliotrope', 'wine bottle', 'strawberry', 'pomegranate', 'whale', 'lily of the valley', 'iris', 'tobacco', 'olive', 'tobacco-packaging', 'meat', 'daffodil', 'melon', 'fire', 'petunia', 'mushroom', 'teapot', 'ring', 'pig', 'ashtray', 'cheese', 'onion', 'cup', 'nut', 'fig', 'drinking vessel', 'donkey', 'holding the nose', 'lily', 'smoke', 'bread', 'currant', 'glass without stem', 'anemone', 'mammal', 'chimney', 'smoking equipment', 'bivalve', 'butterfly', 'gloves', 'lemon', 'horse', 'plum', 'jasmine', 'pear', 'glass with stem', 'vegetable', 'carnation', 'jug', 'goat', 'fish', 'apple', 'tulip', 'cherry', 'cow', 'animal corpse', 'dog', 'fruit', 'bird', 'rose', 'peach', 'sheep', 'pipe', 'grapes', 'flower']
42
 
 
72
  )
73
 
74
  def _split_generators(self, dl_manager):
75
+ # df_meta = pd.read_csv('meta/meta.csv')
76
+ # dl_manager.download(df_meta['Image Credits'].values)
77
+ dl_manager.download_and_extract(_URL)
78
 
79
  return [
80
  datasets.SplitGenerator(