-
Notifications
You must be signed in to change notification settings - Fork 21
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
ImportError #56
Comments
+1 |
all = ['jpeg_encode', 'jpeg_decode'] def jpeg_encode(): def jpeg_decode():
|
-- coding: utf-8 --$File: init.py$Author: Xinyu Zhou [email protected]Copyright (c) 2015 Megvii Inc. All rights reserved.from .jpegpy import jpeg_encode, jpeg_decodeimport numpy as np# all = ['jpeg_encode', 'jpeg_decode']all = ['jpeg_encode', 'jpeg_decode']def jpeg_encode(img: np.array, quality=80):from .jpegpy import jpeg_encodereturn jpeg_encode(img,quality=quality)def jpeg_decode(code: bytes):from .jpegpy import jpeg_decodereturn jpeg_decode(code)vim: foldmethod=markerimport imageio def jpeg_encode(img: np.array, quality=80): def jpeg_decode(code: bytes): actually,u can replace the author's method(JPEGLib/cpp) to imageio(python) |
ImportError: cannot import name '_jpegpy' from partially initialized module 'lib.data_preprocess.utils.jpegpy' (most likely due to a circular import) (/home/dancer/project_xm/CADDM-master/lib/data_preprocess/utils/jpegpy/init.py)
出现这个报错怎么修改
The text was updated successfully, but these errors were encountered: