File size: 827 Bytes
68cd723
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import os
import sys
import io

def check_bake_available():
    is_ok = os.path.exists("./third_party/weights/DUSt3R_ViTLarge_BaseDecoder_512_dpt/model.safetensors")
    is_ok = is_ok and os.path.exists("./third_party/dust3r")
    is_ok = is_ok and os.path.exists("./third_party/dust3r/dust3r")
    is_ok = is_ok and os.path.exists("./third_party/dust3r/croco/models")
    if is_ok:
        print("Baking is avaliable")
        print("Baking is avaliable")
        print("Baking is avaliable")
    else:
        print("Baking is unavailable, please download related files in README")
        print("Baking is unavailable, please download related files in README")
        print("Baking is unavailable, please download related files in README")
    return is_ok



if __name__ == "__main__":
    
    check_bake_available()