Closed AnSMru closed 1 year ago
I have same question!
You can create a new virtual environment in python 3.10
After recreate the environment (python = 3.10), my problem had been solved!
Reference: https://github.com/tiangolo/typer/issues/371
I use Jetson TX2, and I can only 3.6 with cuda
change np.ndarray
to np.ndarray | Any
Hello, your last suggestion does not work for me Lornatang
@charleneguillaumot Perhaps you can remove the definition of the type~
Fixed. Thank you~
Traceback (most recent call last): File "test.py", line 23, in
from image_quality_assessment import PSNR, SSIM
File "/SRGAN-PyTorch/image_quality_assessment.py", line 205, in
def _get_mscn_feature(image: np.ndarray) -> list[float | Any]:
TypeError: unsupported operand type(s) for |: 'type' and '_SpecialForm'
What to do?