mnauf commited on
Commit
63b6b54
1 Parent(s): 9f17aba

check whether custom_model.pt exists

Browse files
Files changed (1) hide show
  1. sample_solution.py +2 -1
sample_solution.py CHANGED
@@ -264,7 +264,8 @@ def main(image):
264
  # print(image.shape)
265
  # print()
266
  # cv2.imshow("sdfsd", image)
267
- print("custom_model.pt" in os.listdir("./"))
 
268
  image_path = os.path.join("images", str(time.time()) + ".jpg")
269
  image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
270
  cv2.imwrite(image_path, image)
 
264
  # print(image.shape)
265
  # print()
266
  # cv2.imshow("sdfsd", image)
267
+ print("List of files: ", os.listdir("./"))
268
+ print("Model exists?: ", "custom_model.pt" in os.listdir("./"))
269
  image_path = os.path.join("images", str(time.time()) + ".jpg")
270
  image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
271
  cv2.imwrite(image_path, image)