Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Windows [OpenEXR codec is disabled] #8

Closed
matbee-eth opened this issue Mar 16, 2023 · 3 comments
Closed

Windows [OpenEXR codec is disabled] #8

matbee-eth opened this issue Mar 16, 2023 · 3 comments

Comments

@matbee-eth
Copy link

character sheet: ['double_ponytail_images\I1.png', 'double_ponytail_images\I2.png', 'double_ponytail_images\I3.png', 'double_ponytail_images\I4.png']

test images: 688

0%| | 0/688 [00:00<?, ?it/s][ WARN:0@1.630] global grfmt_exr.cpp:102 cv::initOpenEXR imgcodecs: OpenEXR codec is disabled. You can enable it via 'OPENCV_IO_ENABLE_OPENEXR' option. Refer for details and cautions here: opencv/opencv#21326
Traceback (most recent call last):
File "C:\Users\mail\dev\Live3D\train.py", line 229, in
test()
File "C:\Users\mail\dev\Live3D\train.py", line 86, in test
infer(args, humanflowmodel, image_names_list)
File "C:\Users\mail\dev\Live3D\train.py", line 114, in infer
for i, data in enumerate(train_data):
File "C:\Users\mail\dev\Live3D\python\lib\site-packages\torch\utils\data\dataloader.py", line 628, in next
data = self._next_data()
File "C:\Users\mail\dev\Live3D\python\lib\site-packages\torch\utils\data\dataloader.py", line 671, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\mail\dev\Live3D\python\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\mail\dev\Live3D\python\lib\site-packages\torch\utils\data_utils\fetch.py", line 58, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\mail\dev\Live3D\data_loader.py", line 266, in getitem
target = self.get_gt_from_disk(
File "C:\Users\mail\dev\Live3D\data_loader.py", line 209, in get_gt_from_disk
label_np = cv2.cvtColor(cv2.imdecode(np.frombuffer(bio.read(
cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\grfmt_exr.cpp:103: error: (-213:The function/feature is not implemented) imgcodecs: OpenEXR codec is disabled. You can enable it via 'OPENCV_IO_ENABLE_OPENEXR' option. Refer for details and cautions here: opencv/opencv#21326 in function 'cv::initOpenEXR'

@matbee-eth
Copy link
Author

matbee-eth commented Mar 16, 2023

Fixed via modification of webui.py

import os
import sys
import shutil
from pathlib import Path
import subprocess
os.environ["OPENCV_IO_ENABLE_OPENEXR"]="1"

@transpchan
Copy link
Owner

transpchan commented Mar 16, 2023

Hi thank you for reporting the bug! Could you Pull Rrequest this?

@matbee-eth
Copy link
Author

matbee-eth commented Mar 16, 2023

I see you got to it already!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants