stable diffusion video. “”” passclass Diffusivity(MRIData): def __init__(self, diffusion_data: Union[dict, None], refinedset=None) -> None: super().__init__() self._diffusion = diffusion_data or [] if len(diffusion_data[“parameters”]): diffusion_parameters = tuple([ _get_param(‘diffuse’, val=_p[‘diffuse’]) for _, _p in enumerate(diffusion_data[“parameters”])]) self.__setattr__(‘Parameters’, diffusion_parameters) # check if refined set exists with given parameters elif isinstance(refinedset, np.ndarray): ## if a numpy array is passed it means we are doing a refinement (e.g. at least some of the original was nan values) params = {k: v for k, v in zip([‘scale_factor’,’shift’], [1., *np.ones((2,))])} params[‘_mask’] = False self.__setattr__(‘Parameters’, list(_merge(params))) refineddfn, self._index, maskidx = _transform_to_dataframe(*refinedset[~np.isnan(
This post was created with our nice and easy submission form. Create your post!
GIPHY App Key not set. Please check settings