while I'm running the code, I got this error:
Output: ./output/COVIDNet-lr0.0002
13992 16490
Saved baseline checkpoint
Baseline eval:
[[194. 6.]
[ 9. 191.]]
Sens Negative: 0.970, Positive: 0.955
PPV Negative: 0.956, Positive: 0.970
Training started
Traceback (most recent call last):
File "train_tf.py", line 144, in
batch_x, batch_y, weights, is_training = next(generator)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 167, in next
model_inputs = self.getitem(self.n)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 219, in getitem
top_percent=self.top_percent,
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 23, in process_image_file
img = crop_top(img, percent=top_percent)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 12, in crop_top
offset = int(img.shape[0] * percent)
AttributeError: 'NoneType' object has no attribute 'shape'
Although I downloaded version 3 based on #155 I still have this error.
I am using python 3.6, TensorFlow 1.15, open-cv 4.2, and running the code on Linux Manjaro.
would you please tell me how I can solve this problem?
while I'm running the code, I got this error:
Output: ./output/COVIDNet-lr0.0002
13992 16490
Saved baseline checkpoint
Baseline eval:
[[194. 6.]
[ 9. 191.]]
Sens Negative: 0.970, Positive: 0.955
PPV Negative: 0.956, Positive: 0.970
Training started
Traceback (most recent call last):
File "train_tf.py", line 144, in
batch_x, batch_y, weights, is_training = next(generator)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 167, in next
model_inputs = self.getitem(self.n)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 219, in getitem
top_percent=self.top_percent,
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 23, in process_image_file
img = crop_top(img, percent=top_percent)
File "/home/samaneh/workspace/COVID-Net-master/data.py", line 12, in crop_top
offset = int(img.shape[0] * percent)
AttributeError: 'NoneType' object has no attribute 'shape'
Although I downloaded version 3 based on #155 I still have this error.
I am using python 3.6, TensorFlow 1.15, open-cv 4.2, and running the code on Linux Manjaro.
would you please tell me how I can solve this problem?