Closed BILLXZY1215 closed 1 year ago
Figured out. We should not clarify clahe
in __init__
function of dataset.py
.
Change this into __getitem__
function:
clahe = cv2.createCLAHE(clipLimit=1.5, tileGridSize=(8,8))
img = clahe.apply(np.array(np.uint8(pilimg)))
Hi, I'm trying to run
test.py
as the README suggested:python test.py --model densenet --load best_model.pkl --bs 4 --dataset data/
, I just changed the dataset into my own images (already resized to 640*400), however I'm getting this error:P.S. I'm using PyTorch CPU Version, but since it is an opencv problem, any workaround here? Thanks.
Or only CUDA can work well?