routineLife1 / AFI-ForwardDeduplicate

Efficient Deduplicate for Anime Video Frame Interpolation
MIT License
5 stars 0 forks source link

ImportError: cannot import name 'startupinfo' from 'skvideo.utils' #2

Closed Q8sh2ing closed 11 months ago

Q8sh2ing commented 11 months ago

i am currently running the code on colab and this error pop-out during inference

/content/GMFSS_Fortuna/AFI-ForwardDeduplicate Traceback (most recent call last): File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/interpolate_video_forward.py", line 66, in scene_detection = SvfiTransitionDetection(save, 4, File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/scdet.py", line 239, in init from Utils_scdet.utils import Tools File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/utils.py", line 26, in from skvideo.utils import startupinfo ImportError: cannot import name 'startupinfo' from 'skvideo.utils' (/usr/local/lib/python3.10/dist-packages/skvideo/utils/init.py)

. below are the packages installed Requirement already satisfied: scikit-video in /usr/local/lib/python3.10/dist-packages (1.1.11) Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.23.5) Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from scikit-video) (9.4.0) Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.11.3)

2994dd42d75b0 commented 11 months ago

i am currently running the code on colab and this error pop-out during inference

/content/GMFSS_Fortuna/AFI-ForwardDeduplicate Traceback (most recent call last): File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/interpolate_video_forward.py", line 66, in scene_detection = SvfiTransitionDetection(save, 4, File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/scdet.py", line 239, in init from Utils_scdet.utils import Tools File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/utils.py", line 26, in from skvideo.utils import startupinfo ImportError: cannot import name 'startupinfo' from 'skvideo.utils' (/usr/local/lib/python3.10/dist-packages/skvideo/utils/init.py)

. below are the packages installed Requirement already satisfied: scikit-video in /usr/local/lib/python3.10/dist-packages (1.1.11) Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.23.5) Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from scikit-video) (9.4.0) Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.11.3)

startupinfo is for windows only just remove line 26 (from skvideo.utils import startupinfo) and run

Q8sh2ing commented 11 months ago

i am currently running the code on colab and this error pop-out during inference /content/GMFSS_Fortuna/AFI-ForwardDeduplicate Traceback (most recent call last): File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/interpolate_video_forward.py", line 66, in scene_detection = SvfiTransitionDetection(save, 4, File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/scdet.py", line 239, in init from Utils_scdet.utils import Tools File "/content/GMFSS_Fortuna/AFI-ForwardDeduplicate/Utils_scdet/utils.py", line 26, in from skvideo.utils import startupinfo ImportError: cannot import name 'startupinfo' from 'skvideo.utils' (/usr/local/lib/python3.10/dist-packages/skvideo/utils/init.py) . below are the packages installed Requirement already satisfied: scikit-video in /usr/local/lib/python3.10/dist-packages (1.1.11) Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.23.5) Requirement already satisfied: pillow in /usr/local/lib/python3.10/dist-packages (from scikit-video) (9.4.0) Requirement already satisfied: scipy in /usr/local/lib/python3.10/dist-packages (from scikit-video) (1.11.3)

startupinfo is for windows only just remove line 26 (from skvideo.utils import startupinfo) and run

thanks, the code now works perfectly.

Q8sh2ing commented 11 months ago

i had made a simple google colab with the code. here

routineLife1 commented 11 months ago

Thanks for your colab implementation, I will add it to the project page