|
|
@ -579,7 +579,7 @@ |
|
|
|
" gitclone(\"https://github.com/shariqfarooq123/AdaBins.git\")\n", |
|
|
|
" gitclone(\"https://github.com/shariqfarooq123/AdaBins.git\")\n", |
|
|
|
" if not os.path.exists(f'{PROJECT_DIR}/pretrained/AdaBins_nyu.pt'):\n", |
|
|
|
" if not os.path.exists(f'{PROJECT_DIR}/pretrained/AdaBins_nyu.pt'):\n", |
|
|
|
" createPath(f'{PROJECT_DIR}/pretrained')\n", |
|
|
|
" createPath(f'{PROJECT_DIR}/pretrained')\n", |
|
|
|
" wget("https://cloudflare-ipfs.com/ipfs/Qmd2mMnDLWePKmgfS8m6ntAg4nhV5VkUyAydYBp8cWWeB7/AdaBins_nyu.pt", f'{PROJECT_DIR}/pretrained')\n", |
|
|
|
" wget(\"https://cloudflare-ipfs.com/ipfs/Qmd2mMnDLWePKmgfS8m6ntAg4nhV5VkUyAydYBp8cWWeB7/AdaBins_nyu.pt\", f'{PROJECT_DIR}/pretrained')\n", |
|
|
|
" sys.path.append(f'{PROJECT_DIR}/AdaBins')\n", |
|
|
|
" sys.path.append(f'{PROJECT_DIR}/AdaBins')\n", |
|
|
|
" from infer import InferenceHelper\n", |
|
|
|
" from infer import InferenceHelper\n", |
|
|
|
" MAX_ADABINS_AREA = 500000\n", |
|
|
|
" MAX_ADABINS_AREA = 500000\n", |
|
|
|