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

Assertion Error #73

Open
MaleehaKhan opened this issue Aug 6, 2019 · 3 comments
Open

Assertion Error #73

MaleehaKhan opened this issue Aug 6, 2019 · 3 comments

Comments

@MaleehaKhan
Copy link

Traceback (most recent call last):
File "prepare_datasets_DRIVE.py", line 81, in
imgs_train, groundTruth_train, border_masks_train = get_datasets(original_imgs_train,groundTruth_imgs_train,borderMasks_imgs_train,"train")
File "prepare_datasets_DRIVE.py", line 66, in get_datasets
assert(np.max(groundTruth)==255 and np.max(border_masks)==255)
AssertionError
.........kindly tell me solution ............

@MalikAbdulrehman
Copy link

Traceback (most recent call last):
File "prepare_datasets_DRIVE.py", line 81, in
imgs_train, groundTruth_train, border_masks_train = get_datasets(original_imgs_train,groundTruth_imgs_train,borderMasks_imgs_train,"train")
File "prepare_datasets_DRIVE.py", line 66, in get_datasets
assert(np.max(groundTruth)==255 and np.max(border_masks)==255)
AssertionError
.........kindly tell me solution ............

@mayasharei
Copy link

Has anybody found a fix for this issue?

@Michelle607
Copy link

AssertionError Traceback (most recent call last)
/tmp/ipykernel_129/2441715887.py in
78
79 #getting the training datasets
---> 80 imgs_train, groundTruth_train, border_masks_train = get_datasets(original_imgs_train,groundTruth_imgs_train,borderMasks_imgs_train,"train")
81 print ("saving train datasets")
82 write_hdf5(imgs_train, dataset_path + "DRIVE_dataset_imgs_train.hdf5")

/tmp/ipykernel_129/2441715887.py in get_datasets(imgs_dir, groundTruth_dir, borderMasks_dir, train_test)
64 print (("imgs max: " +str(np.max(imgs))))
65 print ("imgs min: " +str(np.min(imgs)))
---> 66 assert(np.max(groundTruth)==255 and np.max(border_masks)==255)
67 assert(np.min(groundTruth)==0 and np.min(border_masks)==0)
68 print ("ground truth and border masks are correctly withih pixel value range 0-255 (black-white)")

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

4 participants