45bc77266ba893c3ec65cc8661a1b66abe354671,kymatio/scattering3d/tests/test_scattering3d.py,,test_scattering_methods,#,168
Before Change
Sx = scattering(x, method="integral")
def test_scattering_methods():
if backend.NAME == "skcuda":
warnings.warn(("The skcuda backend is not yet implemented for 3D "
"scattering, but that"s ok (for now)."), RuntimeWarning,
stacklevel=2)
return
shape = (32, 32, 32)
J = 4
L = 3
sigma_0 = 1
After Change
scattering = Scattering3D(J=J, shape=shape, L=L, sigma_0=sigma_0)
if not "cpu" in devices:
x = x.cuda()
scattering.cuda()
Sx = scattering(x, method="standard")
Sx = scattering(x, method="standard", rotation_covariant=False)
points = torch.zeros(1, 1, 3)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name: test_scattering_methods
Project Name: kymatio/kymatio
Commit Name: 45bc77266ba893c3ec65cc8661a1b66abe354671
Time: 2018-12-14
Author: janden@flatironinstitute.org
File Name: kymatio/scattering3d/tests/test_scattering3d.py
Class Name:
Method Name: test_larger_scales
Project Name: junyanz/interactive-deep-colorization
Commit Name: 28914875e1a85a1c860ece7ddce715adbcd5c067
Time: 2018-09-11
Author: junyanzhu89@gmail.com
File Name: data/colorize_image.py
Class Name: ColorizeImageTorch
Method Name: prep_net