AI4EPS / PhaseNet

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

join() argument in data_reader #48

Closed rzkmly closed 2 years ago

rzkmly commented 2 years ago

Hello.

I want to re-train the data by I keep getting this on several error messages:

Traceback (most recent call last):

File "/home/rzkmly/anaconda3/envs/phasenet/lib/python3.7/site-packages/tensorflow/python/ops/script_ops.py", line 249, in call ret = func(*args)

File "/home/rzkmly/anaconda3/envs/phasenet/lib/python3.7/site-packages/tensorflow/python/autograph/impl/api.py", line 645, in wrapper return func(*args, **kwargs)

File "/home/rzkmly/PhaseNet/phasenet/data_reader.py", line 45, in index_to_entry return iterator[idx]

File "/home/rzkmly/PhaseNet/phasenet/data_reader.py", line 590, in getitem meta = self.read_numpy(os.path.join(self.data_dir, base_name))

File "/home/rzkmly/anaconda3/envs/phasenet/lib/python3.7/posixpath.py", line 94, in join genericpath._check_arg_types('join', a, *p)

File "/home/rzkmly/anaconda3/envs/phasenet/lib/python3.7/genericpath.py", line 153, in _check_arg_types (funcname, s.class.name)) from None

TypeError: join() argument must be str or bytes, not 'int64'

I tried to modify the npz samples on the test_data & match the format with mine, but I keep getting the same errors. Actually, all the TypeError is the same.