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

Update ade20k_loader.py #261

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update ade20k_loader.py
MOAZ47 authored Dec 18, 2021
commit 339f5d1d94cdb1f3314c22c37cfaad94163491ab
2 changes: 2 additions & 0 deletions ptsemseg/loader/ade20k_loader.py
Original file line number Diff line number Diff line change
@@ -46,6 +46,8 @@ def __len__(self):
def __getitem__(self, index):
img_path = self.files[self.split][index].rstrip()
lbl_path = img_path[:-4] + "_seg.png"
print("img_path",img_path)
print("lbl_path",lbl_path)

img = cv2.imread(img_path)
img = np.array(img, dtype=np.uint8)