htzheng / CM-GAN-Inpainting

CM-GAN for Image Inpainting
Apache License 2.0
241 stars 20 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte #10

Open fazhang-master opened 11 months ago

fazhang-master commented 11 months ago
<_io.BufferedReader name='/home/zf/Desktop/CMGAN/mask_generator/Places365_test_00000002.jpg'> Traceback (most recent call last): File "/home/zf/Desktop/CMGAN/mask_generator/mask_generator.py", line 310, in image, mask, masked_image = mask_generator(image_fname, anno_seg_fname, anno_json_fname) File "/home/zf/Desktop/CMGAN/mask_generator/mask_generator.py", line 291, in __call__ image_label_, image_label_anno_ = self._load_raw_image_label(anno_seg_fname, anno_json_fname, crop_config=crop_config, panoptic=self._panoptic) File "/home/zf/Desktop/CMGAN/mask_generator/mask_generator.py", line 175, in _load_raw_image_label anno = json.load(f) File "/home/zf/programs/miniconda3/envs/CMGAN/lib/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/home/zf/programs/miniconda3/envs/CMGAN/lib/python3.7/json/__init__.py", line 343, in loads s = s.decode(detect_encoding(s), 'surrogatepass') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte