AI4EPS / PhaseNet

PhaseNet: A Deep-Neural-Network-Based Seismic Arrival Time Picking Method
MIT License
263 stars 111 forks source link

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

Open 54ycc opened 2 years ago

54ycc commented 2 years ago

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 commented 10 months ago

After I checked, the run.py file had been deleted. in this link: https://github.com/AI4EPS/PhaseNet/commit/4f0ce5fb91e292576c488af3b57d09b62a98c930

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 commented 10 months ago

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