Spaces:
Runtime error
Runtime error
init
Browse files125 unmodified lines12612712812913013113245 unmodified lines178179180181182183125 unmodified linesfeature_extractor: AutoImageProcessor,depth_estimator: AutoModelForDepthEstimation) -> Image:image_to_depth = feature_extractor(images=image, return_tensors="pt")#.to(device)with torch.no_grad():depth_map = depth_estimator(**image_to_depth).predicted_depth45 unmodified linesclass ControlNetDepthDesignModelMulti:""" Produces random noise images """def __init__(self):""" Initialize your model(s) here """#os.environ['HF_HUB_OFFLINE'] = "True"125 unmodified lines12612712812913013113245 unmodified lines178179180181182183184125 unmodified linesfeature_extractor: AutoImageProcessor,depth_estimator: AutoModelForDepthEstimation) -> Image:image_to_depth = feature_extractor(images=image, return_tensors="pt").to(device)with torch.no_grad():depth_map = depth_estimator(**image_to_depth).predicted_depth45 unmodified linesclass ControlNetDepthDesignModelMulti:""" Produces random noise images """@spaces.GPUdef __init__(self):""" Initialize your model(s) here """#os.environ['HF_HUB_OFFLINE'] = "True"
app.py+2-1