alkzar90 commited on
Commit
17acea3
1 Parent(s): ca3428e

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +5 -4
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -7,8 +7,11 @@ import pandas as pd
7
 
8
  from requests import get
9
 
 
10
  logger = datasets.logging.get_logger(__name__)
11
- datasets.logging.set_verbosity_info()
 
 
12
 
13
 
14
  _DESCRIPTION = "XYZ"
@@ -28,7 +31,6 @@ _URLS = {
28
 
29
  # Create id-to-label dictionary using the classes file
30
  classes = get(_URLS["classes"]).iter_lines()
31
- logger.info(f"classes: {classes}")
32
  _ID2LABEL = {}
33
  for row in classes:
34
  row = row.decode("UTF8")
@@ -36,8 +38,7 @@ for row in classes:
36
  idx, label = row.split(" ")
37
  _ID2LABEL[idx] = re.search("[^\d\.\_+].+", label).group(0).replace("_", " ")
38
 
39
- logger.info(f"_ID2LABEL: {_ID2LABEL}")
40
-
41
  _NAMES = list(_ID2LABEL.values())
42
 
43
 
 
7
 
8
  from requests import get
9
 
10
+ datasets.logging.set_verbosity_debug()
11
  logger = datasets.logging.get_logger(__name__)
12
+ #datasets.logging.set_verbosity_info()
13
+ datasets.logging.set_verbosity_debug()
14
+
15
 
16
 
17
  _DESCRIPTION = "XYZ"
 
31
 
32
  # Create id-to-label dictionary using the classes file
33
  classes = get(_URLS["classes"]).iter_lines()
 
34
  _ID2LABEL = {}
35
  for row in classes:
36
  row = row.decode("UTF8")
 
38
  idx, label = row.split(" ")
39
  _ID2LABEL[idx] = re.search("[^\d\.\_+].+", label).group(0).replace("_", " ")
40
 
41
+
 
42
  _NAMES = list(_ID2LABEL.values())
43
 
44