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

example doesn't run #34

Open
cacity opened this issue Jan 6, 2022 · 12 comments
Open

example doesn't run #34

cacity opened this issue Jan 6, 2022 · 12 comments

Comments

@cacity
Copy link

cacity commented Jan 6, 2022

The operating environment is win10 , miniconda , python3.7,
run conda env create -f env.yml
conda activate phasenet
run
python phasenet/predict.py --model=model/190703-214543 --data_list=test_data/npz.csv --data_dir=test_data/npz --format=numpy --plot_figure

result is

fd0cc84a12f8bbecef132dac3838031

@wayneweiqiang
Copy link
Collaborator

Hi, could you install keras and try it again?

@cacity
Copy link
Author

cacity commented Jan 6, 2022

now question is
image

@wayneweiqiang
Copy link
Collaborator

Sorry, I have not tested the code in windows. You can search online to find how to fix this error.

@cacity
Copy link
Author

cacity commented Jan 6, 2022

Thanks.

@cacity
Copy link
Author

cacity commented Jan 7, 2022

image

Is pre-trained model result as pic?

@yunshanbai
Copy link

image

Is pre-trained model result as pic?

It should be right.

@wayneweiqiang
Copy link
Collaborator

Thanks @yunshanbai!

@wayneweiqiang
Copy link
Collaborator

Hi, Could you share the errors you met running in Windows and how you fix these errors? @cacity
That will be helpful to other people, too. Thank you!

@zhuwq0
Copy link
Contributor

zhuwq0 commented Jan 26, 2023

You need to install pymongo (although I do not use it anymore): pip install pymongo

@Adnan-Barkat
Copy link

@zhuwq0 I did but still got an error, FileNotFoundError: [Errno 2] No such file or directory: 'test_data/mseed.csv'

Here are the steps, I adopted to install the Phasenet

git clone https://github.com/wayneweiqiang/PhaseNet.git
cd PhaseNet
conda env update -f=env.yml -n base
conda activate phasenet

command I am using to run phasenet

python phasenet/predict.py --model=model/190703-214543 --data_list=test_data/mseed.csv --data_dir=test_data/mseed --format=mseed --plot_figure

@zhuwq0
Copy link
Contributor

zhuwq0 commented Jan 26, 2023

You need to download the test data following the README file.

@Adnan-Barkat
Copy link

@zhuwq0 thanks it works now, .. just one thing more if i want to run phasenet on my own data do i suppose to replace this data file with my own data, only or anything else also required.

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

5 participants