The OCR approach is rephrased as Segmentation Transformer: https://arxiv.org/abs/1909.11065. This is an official implementation of semantic segmentation for HRNet. https://arxiv.org/abs/1908.07919
Other
3.09k
stars
682
forks
source link
How to test my own images without labels or parsing_annotations? #234
I try to delete the right of data/list/lip/testvalList.txt:
val_images/1.jpg
val_images/2.jpg
...
But I meet the problem:
Traceback (most recent call last):
File "tools/test.py", line 143, in
main()
File "tools/test.py", line 99, in main
test_dataset = eval('datasets.'+config.DATASET.DATASET)(
File "/data/likengpeng/HRNet-Semantic-Segmentation/tools/../lib/datasets/lip.py", line 47, in init
self.files = self.read_files()
File "/data/likengpeng/HRNet-Semantic-Segmentation/tools/../lib/datasets/lip.py", line 61, in read_files
image_path, label_path = item
ValueError: not enough values to unpack (expected 2, got 1)
I try to delete the right of data/list/lip/testvalList.txt: val_images/1.jpg val_images/2.jpg ...
But I meet the problem: Traceback (most recent call last): File "tools/test.py", line 143, in
main()
File "tools/test.py", line 99, in main
test_dataset = eval('datasets.'+config.DATASET.DATASET)(
File "/data/likengpeng/HRNet-Semantic-Segmentation/tools/../lib/datasets/lip.py", line 47, in init
self.files = self.read_files()
File "/data/likengpeng/HRNet-Semantic-Segmentation/tools/../lib/datasets/lip.py", line 61, in read_files
image_path, label_path = item
ValueError: not enough values to unpack (expected 2, got 1)
How can I solve it? Thank you!