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

check whether custom_model.pt exists

Browse files
Files changed (1) hide show
  1. sample_solution.py +1 -0
sample_solution.py CHANGED
@@ -264,6 +264,7 @@ def main(image):
264
  # print(image.shape)
265
  # print()
266
  # cv2.imshow("sdfsd", image)
 
267
  image_path = os.path.join("images", str(time.time()) + ".jpg")
268
  image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
269
  cv2.imwrite(image_path, 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)