Dharini Baskaran commited on
Commit ·
1f3b592
1
Parent(s): 7524599
updated the model weight path
Browse files14 unmodified lines1516171819202122233 unmodified lines27282930313214 unmodified linesUPLOAD_DIR = "/tmp/uploads/"JSON_DIR = "/tmp/results/"OUTPUT_DIR = "/tmp/output/"MODEL_DIR = os.path.join(BASE_DIR, "rcnn_model", "scripts")logo_path = os.path.join(BASE_DIR, "public", "logo.png")model_path = os.path.join(OUTPUT_DIR, "model_final_2.pth")# Google Drive modelGOOGLE_DRIVE_FILE_ID = "1ptdr6d_jglk_78e4d5s1jUO04XWS1zo"3 unmodified linesos.makedirs(UPLOAD_DIR, exist_ok=True)os.makedirs(JSON_DIR, exist_ok=True)os.makedirs(OUTPUT_DIR, exist_ok=True)# Download model if missingif not os.path.exists(model_path):14 unmodified lines151617181920212223243 unmodified lines2829303132333414 unmodified linesUPLOAD_DIR = "/tmp/uploads/"JSON_DIR = "/tmp/results/"OUTPUT_DIR = "/tmp/output/"OUTPUT_DIR2= "/tmp/output2/"MODEL_DIR = os.path.join(BASE_DIR, "rcnn_model", "scripts")logo_path = os.path.join(BASE_DIR, "public", "logo.png")model_path = os.path.join(OUTPUT_DIR2, "model_final_2.pth")# Google Drive modelGOOGLE_DRIVE_FILE_ID = "1ptdr6d_jglk_78e4d5s1jUO04XWS1zo"3 unmodified linesos.makedirs(UPLOAD_DIR, exist_ok=True)os.makedirs(JSON_DIR, exist_ok=True)os.makedirs(OUTPUT_DIR, exist_ok=True)os.makedirs(OUTPUT_DIR2, exist_ok=True)# Download model if missingif not os.path.exists(model_path):
app.py+3-1