daviddmc / NeSVoR

NeSVoR is a package for GPU-accelerated slice-to-volume reconstruction.
MIT License
69 stars 14 forks source link

TypeError: 'ABCMeta' object is not subscriptable #16

Open Radyngzh opened 9 months ago

Radyngzh commented 9 months ago

TypeError: 'ABCMeta' object is not subscriptable

torch 1.10.0+cu113 cuda 11.2 python 3.8.10

nesvor reconstruct --input-slices ../nesvor/casenii \ --output-slices ../nesvor/outnii \ --output-resolution 0.8 \ --registration svort \ --segmentation \ --bias-field-correction

seems like a ez question..

yifeng1992 commented 7 months ago

Solved the problem by modifying the nesvor/utils/types .py

from typing import Union from os import PathLike import torch

PathType = Union[str, PathLike] DeviceType = Union[torch.device, str, None]