-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bad choice of "window_samples" crashes PyCall #4
Comments
I believe this error is being caused by the maxpool operation. When julia> S = read_data("seisio", seisiopath)[1:3]
SeisData with 3 channels (3 shown)
ID: KI.ABSH01..HNE KI.ABSH01..HNN KI.ABSH01..HNZ
NAME: KI.ABSH01..EW2 KI.ABSH01..NS2 KI.ABSH01..UD2
LOC: 44.5276 N, 142.844 E, 105.0 m 44.5276 N, 142.844 E, 105.0 m 44.5276 N, 142.844 E, 105.0 m
FS: 100.0 100.0 100.0
GAIN: 1.0 1.0 1.0
RESP: a0 1.0, f0 1.0, 0z, 0p a0 1.0, f0 1.0, 0z, 0p a0 1.0, f0 1.0, 0z, 0p
UNITS: cm/s^2 cm/s^2 cm/s^2
SRC:
MISC: 0 entries 0 entries 0 entries
NOTES: 3 entries 3 entries 3 entries
T: 2012-12-07T17:18:43 (0 gaps) 2012-12-07T17:18:43 (0 gaps) 2012-12-07T17:18:43 (0 gaps)
X: -8.015e-04 +2.753e-03 -5.642e-04
+8.900e-04 +6.775e-04 -3.672e-04
... ... ...
-1.340e-02 -5.468e-02 -7.772e-02
(nx = 34800) (nx = 34800) (nx = 34800) Using a julia> window_samples = 400
julia> X = seisdata2torch(S,window_samples)
julia> X.shape
(87, 3, 400) Since batch_size = X.shape[1] For much larger |
Hi,
I executed the following code:
And I have this error:
However, if I set the window_samples to 160, I have no errors, and the code is executed successfully.
So, Are there any combinations of window_samples, batch_size, and npts to bear in mind before applying the detector?
The text was updated successfully, but these errors were encountered: