vmem / extern /CUT3R /add_ckpt_path.py
liguang0115's picture
Add initial project structure with core files, configurations, and sample images
2df809d
raw
history blame contribute delete
201 Bytes
import sys
import os
import os.path as path
def add_path_to_dust3r(ckpt):
HERE_PATH = os.path.dirname(os.path.abspath(ckpt))
# workaround for sibling import
sys.path.insert(0, HERE_PATH)