alkzar90 commited on
Commit
62e9177
1 Parent(s): 5c728e6

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +4 -2
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -7,8 +7,10 @@ import pandas as pd
7
 
8
  from requests import get
9
 
10
- datasets.logging.set_verbosity_info()
11
  logger = datasets.logging.get_logger(__name__)
 
 
 
12
 
13
  _CITATION = "XYZ"
14
  _HOMEPAGE = "https://github.com/ivansipiran/CC6204-Deep-Learning/blob/main/Hackaton/hackaton.md"
@@ -33,7 +35,7 @@ for row in classes:
33
  row = row.decode("UTF8")
34
  if row != '':
35
  idx, label = row.split(" ")
36
- classes[int(idx)] = re.search("[^\d\.\_+].+", label).group(0).replace("_", " ")
37
 
38
  logger.info(f"_ID2LABEL: {_ID2LABEL}")
39
 
 
7
 
8
  from requests import get
9
 
 
10
  logger = datasets.logging.get_logger(__name__)
11
+ logger.set_verbosity_info()
12
+ #datasets.logging.set_verbosity_info()
13
+
14
 
15
  _CITATION = "XYZ"
16
  _HOMEPAGE = "https://github.com/ivansipiran/CC6204-Deep-Learning/blob/main/Hackaton/hackaton.md"
 
35
  row = row.decode("UTF8")
36
  if row != '':
37
  idx, label = row.split(" ")
38
+ _ID2LABEL[int(idx)] = re.search("[^\d\.\_+].+", label).group(0).replace("_", " ")
39
 
40
  logger.info(f"_ID2LABEL: {_ID2LABEL}")
41