Giter VIP home page Giter VIP logo

Comments (4)

apmuller14 avatar apmuller14 commented on July 26, 2024

The latest version (0.0.10), which I tried to use, calls the functions in a different way. Now closing the issue.

from deepwave.

ar4 avatar ar4 commented on July 26, 2024

from deepwave.

apmuller14 avatar apmuller14 commented on July 26, 2024

Hello! No problems with the new style, I have just started my tests, then it was easy to adapt.
Now I set a stable environment with anaconda and 0.0.10 works perfect!
I was having problems with 0.0.9 in my computer, I got the following message when I tried to run with the same anaconda environment:

ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_6774/2947140526.py in
----> 1 receiver_amplitudes = prop(source_amplitudes, x_s.to(device), x_r.to(device), dt)

/usr/local/python/lib/python3.9/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1101 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102 return forward_call(*input, **kwargs)
1103 # Do not call functions when jit is used
1104 full_backward_hooks, non_full_backward_hooks = [], []

/usr/local/python/lib/python3.9/site-packages/deepwave/base/propagator.py in forward(self, source_amplitudes, source_locations, receiver_locations, dt)
142
143 # Run the propagator
--> 144 return self.propfunc.apply(source_amplitudes, source_locations,
145 receiver_locations, dt, model,
146 list(model.properties.keys()),

/usr/local/python/lib/python3.9/site-packages/deepwave/scalar/scalar.py in forward(ctx, source_amplitudes, source_locations, receiver_locations, dt, model, property_names, vp)
88 source_model_locations = model.get_locations(source_locations)
89 receiver_model_locations = model.get_locations(receiver_locations)
---> 90 scalar_wrapper = _select_propagator(model.ndim, vp.dtype, vp.is_cuda)
91 wavefield_save_strategy = _set_wavefield_save_strategy(
92 ctx.needs_input_grad[6], dt, timestep.inner_dt, scalar_wrapper

/usr/local/python/lib/python3.9/site-packages/deepwave/scalar/scalar.py in _select_propagator(ndim, dtype, cuda)
297 import scalar1d_gpu_iso_4_float as scalar_wrapper
298 elif ndim == 2:
--> 299 import scalar2d_gpu_iso_4_float as scalar_wrapper
300 elif ndim == 3:
301 import scalar3d_gpu_iso_4_float as scalar_wrapper

ModuleNotFoundError: No module named 'scalar2d_gpu_iso_4_float'

Since the new version works perfect, I do not know if this should be an issue for another person.

from deepwave.

ar4 avatar ar4 commented on July 26, 2024

from deepwave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.