Comments (4)
The latest version (0.0.10), which I tried to use, calls the functions in a different way. Now closing the issue.
from deepwave.
from deepwave.
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.
from deepwave.
Related Issues (20)
- optimizer selection question HOT 3
- TypeError: 'module' object is not callable HOT 9
- Asking for Propagator function in the newest version of Deepwave HOT 3
- Error in executing deepwave in MAC HOT 17
- How to calculate RTM using deepwave HOT 11
- Try the first-order acoustic equation propagation HOT 2
- scalar_born memory issue HOT 4
- 3D forward modelling HOT 5
- Incorrect output from DistributedDataParallel HOT 6
- It seams the scalar function cannot generate the ground roll when setting the free surface HOT 4
- Calculated Hessian for the elastic example. It gives zero values HOT 2
- I was unable to complete compilation HOT 5
- Apply deepwave to ultrasound HOT 13
- Generate the waveform data HOT 3
- How can I get the file called scalar2d_gpu_iso_4_float and scalar2d_gpu_iso_4_float.cp38-win_amd64 HOT 3
- How to write a propagator by scalar with the newest version HOT 3
- looked at the source code HOT 8
- how to simulate a source that is not point source, but has an arbitrarily spatial distribution? HOT 6
- Elastic FWI parameterization (Impedance) HOT 2
- Distributed (multi-GPU) execution HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepwave.