vggsfm / debug_demo.py
JianyuanWang's picture
push
34d287c
raw
history blame
No virus
517 Bytes
import gradio as gr
def greet(name, intensity):
return "Hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
inputs=["text", "slider"],
outputs=["text"],
)
demo.launch(share=True)
import sys
import os
sys.path.append('vggsfm_code/')
from vggsfm_code.hf_demo import demo_fn
from omegaconf import DictConfig, OmegaConf
cfg_file = "vggsfm_code/cfgs/demo.yaml"
cfg = OmegaConf.load(cfg_file)
cfg.SCENE_DIR = "vggsfm_code/examples/cake"
import pdb;pdb.set_trace()
demo_fn(cfg)