raja5259 commited on
Commit
eafaa99
·
verified ·
1 Parent(s): 8fa17f6

debug prints

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -12,13 +12,18 @@ image_path = "./Images"
12
  captions_path = "."
13
  data_source = 'flickr8k.zip'
14
 
15
-
16
-
17
  with zipfile.ZipFile(data_source, 'r') as zip_ref:
18
  zip_ref.extractall('.')
 
 
 
19
  os.system("find /home/user/ -name captions.csv")
20
  os.system("find /usr/ -name captions.csv")
21
-
 
 
22
  _, valid_df = make_train_valid_dfs()
23
  model, image_embeddings = get_image_embeddings(valid_df, "best.pt")
24
 
 
12
  captions_path = "."
13
  data_source = 'flickr8k.zip'
14
 
15
+ print("\n\n")
16
+ print("Going to unzip dataset")
17
  with zipfile.ZipFile(data_source, 'r') as zip_ref:
18
  zip_ref.extractall('.')
19
+ print("unzip of dataset is done")
20
+
21
+ print("Going to find captions.csv")
22
  os.system("find /home/user/ -name captions.csv")
23
  os.system("find /usr/ -name captions.csv")
24
+ print("Going to invoke make_train_valid_dfs")
25
+ print("\n\n")
26
+
27
  _, valid_df = make_train_valid_dfs()
28
  model, image_embeddings = get_image_embeddings(valid_df, "best.pt")
29