Skip to content
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

PhaseNet/demo/demo-obspy.ipynb 3. Run PhaseNet need update #47

Open
54ycc opened this issue May 9, 2022 · 2 comments
Open

PhaseNet/demo/demo-obspy.ipynb 3. Run PhaseNet need update #47

54ycc opened this issue May 9, 2022 · 2 comments

Comments

@54ycc
Copy link

54ycc commented May 9, 2022

python: can't open file 'run.py': [Errno 2] No such file or directory
there is no 'run.py' now, maybe need change to 'predict.py'
btw : your software so cool

@mahisaajy
Copy link

After I checked, the run.py file had been deleted. in this link: 4f0ce5f

So, i change the command to be like this:
python phasenet/predict.py --mode=pred --model_dir=model/190703-214543 --data_dir=demo/mseed --data_list=demo/fname.csv --result_dir=output --batch_size=20 --format=mseed

Check figures of waveform and predictions:
python phasenet/predict.py --mode=pred --model_dir=model/190703-214543 --data_dir=demo/mseed --data_list=demo/fname.csv --result_dir=output --plot_figure --batch_size=20 --format=mseed

and it works!

@zhuwq0
Copy link
Contributor

zhuwq0 commented Dec 12, 2023

Sorry, I no longer use that file. You can check this notebook: https://ai4eps.github.io/PhaseNet/example_batch_prediction/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants