fix
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ depth_checkpoint_config_path = hf_hub_download(
|
|
| 130 |
depth_config = OmegaConf.load(depth_checkpoint_config_path)
|
| 131 |
checkpoint_config["depth"] = {"path": depth_checkpoint_path, "mode": "trained", "config": depth_config.model}
|
| 132 |
|
| 133 |
-
LOG_SCALE = depth_config.log_scale
|
| 134 |
MIN_DEPTH = np.log(1e-2) if LOG_SCALE else 1e-2
|
| 135 |
DEPTH_RANGE = np.log(75.0)-MIN_DEPTH if LOG_SCALE else 75.0 - MIN_DEPTH
|
| 136 |
|
|
|
|
| 130 |
depth_config = OmegaConf.load(depth_checkpoint_config_path)
|
| 131 |
checkpoint_config["depth"] = {"path": depth_checkpoint_path, "mode": "trained", "config": depth_config.model}
|
| 132 |
|
| 133 |
+
LOG_SCALE = depth_config.model.log_scale
|
| 134 |
MIN_DEPTH = np.log(1e-2) if LOG_SCALE else 1e-2
|
| 135 |
DEPTH_RANGE = np.log(75.0)-MIN_DEPTH if LOG_SCALE else 75.0 - MIN_DEPTH
|
| 136 |
|