Questions tagged [antspyx]
2 questions
0
votes
3 answers
module 'ants' has no attribute 'from_numpy'
I am working in a jupyter notebook, and used pip to install ANTsPy:
pip install antspyx
However, using the function from_numpy throws an error:
import ants
Im2Use=Im[0,:,:,:]
fixed, moving, mytx=reg(Im2Use,…

Roche
- 155
- 1
- 12
0
votes
0 answers
How to fix: Importing error: cannot import name?
I have the following code:
import sys
import os
import numpy
import pathlib
from ants import image_read, resample_image, iMath, from_numpy, threshold_image, copy_image_info, image_write
from copy import copy
from keras.models import load_model
from…

WSchalls
- 17
- 2