ChayanM commited on
Commit
84eb70b
·
1 Parent(s): b1148ed

Update Chest_Xray_Report_Generator-V2.py

Browse files
Files changed (1) hide show
  1. Chest_Xray_Report_Generator-V2.py +2 -2
Chest_Xray_Report_Generator-V2.py CHANGED
@@ -115,7 +115,7 @@ def reshape_transform(tensor, height=12, width=12): ### height=14, width=14 for
115
 
116
  # Example usage:
117
  #image_path = "/home/chayan/CGI_Net/images/images/CXR1353_IM-0230-1001.png"
118
- model_path = "./Model/"
119
  output_path = "./CAM-Result/"
120
 
121
 
@@ -187,7 +187,7 @@ def dicom_to_png(dicom_file, png_file):
187
  return img
188
 
189
 
190
- Image_Captioner = pipeline("image-to-text", model = "./Model/", device = 0)
191
 
192
  data_dir = "./CAM-Result"
193
 
 
115
 
116
  # Example usage:
117
  #image_path = "/home/chayan/CGI_Net/images/images/CXR1353_IM-0230-1001.png"
118
+ model_path = "ChayanM/Swin-GPT2-Mimic-Impression"
119
  output_path = "./CAM-Result/"
120
 
121
 
 
187
  return img
188
 
189
 
190
+ Image_Captioner = pipeline("image-to-text", model = "ChayanM/Swin-GPT2-Mimic-Impression", device = 0)
191
 
192
  data_dir = "./CAM-Result"
193