daviddmc / NeSVoR

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

TypeError: 'ABCMeta' object is not subscriptable #16

Open Radyngzh opened 1 year ago

Radyngzh commented 1 year 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 10 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]