Bump minimum Python version to 3.8 (#1876)

* Bump minimum Python version to 3.8

* typing_extensions.Literal -> typing.Literal

* ns-dev-test

* typing_extensions.get_args => typing.get_args

* Format with older version of black

* Bump `black`

* Run black
This commit is contained in:
Brent Yi authored and GitHub committed 2023-05-06 13:29:48 -07:00
1 parent 7537551f38
commit 63c6303736
58 files changed
+70 -117

No files matched your search

-1
View File
@@ -258,7 +258,6 @@ class SemanticNerfWModel(Model):
def get_image_metrics_and_images(
self, outputs: Dict[str, torch.Tensor], batch: Dict[str, torch.Tensor]
) -> Tuple[Dict[str, float], Dict[str, torch.Tensor]]:
image = batch["image"].to(self.device)
rgb = outputs["rgb"]
rgb = torch.clamp(rgb, min=0, max=1)