ChenyangLEI / All-In-One-Deflicker

[CVPR2023] Blind Video Deflickering by Neural Filtering with a Flawed Atlas
701 stars 43 forks source link

Windows installation #16

Open lepriko opened 1 year ago

lepriko commented 1 year ago

Hi guys, I'm really excited to test the awesome software that you've created. Can someone help me to install it on a Windows machine, when I try to install it using Conda the packages are missing. I got:

(base) PS D:\proj\All-in-one-Deflicker> conda env create --name deflicker -f environment.yml Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

Already tried to remove the version after the second = but with no luck so far. Does anyone have an environment.yml that is compatible with Windows? Any help will be appreciated.

ronruizG commented 1 year ago

yeah this doesn't have the env for a windows installation :(

andrewssdd commented 1 year ago

I was able to install on Windows wsl.

jonas-klesen commented 1 year ago

Any solution to this?

nixudos commented 1 year ago

Cornox; how do you get past the conda env create -f environment.yml? It fails on mine with Miniconda and refuses to activate. Do we just ignore and continue to run the pip installs? Or are you on a WSL?

Cornox commented 1 year ago

The yaml file doesn't work. (I didn't paid attention and the env was never created for me and I also didn't activate any new environment) I installed packages into my base env by accident and got lucky to get it running since my base env had pytorch and other packages installed from previous acciental installs of stable diffusion into the base env :(. So... the requirments of SD and deflicker overlap to some degree and therefore it wotked for me. I only had to install opencv-python, tensorboard, easydict, imageio-ffmpeg additionally.

I guess if you have a stable diffusion envrionment you could use that one and install the packages I listed above.

Cornox commented 1 year ago

Updated install instructions (without using the environment.yml): conda create --name deflicker python=3.8.8 conda activate deflicker

git clone https://github.com/ChenyangLEI/All-In-One-Deflicker.git cd All-In-One-Deflicker git clone https://github.com/ChenyangLEI/cvpr2023_deflicker_public_folder move cvpr2023_deflicker_public_folder\pretrained_weights .\ && rmdir /s /q cvpr2023_deflicker_public_folder

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

*create a new text document called requirements and paste the following lines in it and save it in the "All-In-One-Deflicker" folder:


brotlipy==0.7.0 certifi==2022.12.7 cffi==1.15.1 charset-normalizer==2.1.1 cryptography==39.0.2 ffmpeg icu idna opencv-python tensorboard easydict imageio-ffmpeg imageio tqdm matplotlib scikit-image


pip install -r requirements.txt

place your video in "All-In-One-Deflicker\data\test" Inference: set PYTHONPATH=%cd% python test.py --video_name data/test/Winter_Scenes_in_Holland.mp4 --fps 10

*I recommend using a video with dimensions that are a multiple of 64 to avoid getting your output video squashed mildly.

konfalkon commented 1 year ago

Followed instructions above and I have this after running:

Traceback (most recent call last): File "E:\deflicker\src\stage1_neural_atlas.py", line 10, in <module> from src.models.stage_1.implicit_neural_networks import IMLP ModuleNotFoundError: No module named 'src' Traceback (most recent call last): File "E:\deflicker\src\neural_filter_and_refinement.py", line 6, in <module> import src.models.network_filter as net ModuleNotFoundError: No module named 'src'

pablx-ts commented 1 year ago

I get this error.

(deflicker) F:\apps\All-In-One-Deflicker>python test.py --video_frame_folder data/test/ause/ Namespace(ckpt_filter='./pretrained_weights/neural_filter.pth', ckpt_local='./pretrained_weights/local_refinement_net.pth', class_name=None, fps=10, gpu=0, video_frame_folder='data/test/ause/', video_name=None) input folder ./data/test/ exist usage: stage1_neural_atlas.py [-h] [--config CONFIG] [--vid_name VID_NAME] [--root ROOT] [--down DOWN] [--gpu GPU] stage1_neural_atlas.py: error: argument --vid_name: expected one argument usage: neural_filter_and_refinement.py [-h] [--ckpt_filter CKPT_FILTER] [--ckpt_local CKPT_LOCAL] [--fps FPS] [--video_name VIDEO_NAME] [--gpu GPU] neural_filter_and_refinement.py: error: argument --video_name: expected one argument

Sirfalus commented 1 year ago

Followed instructions above and I have this after running:

Traceback (most recent call last): File "E:\deflicker\src\stage1_neural_atlas.py", line 10, in <module> from src.models.stage_1.implicit_neural_networks import IMLP ModuleNotFoundError: No module named 'src' Traceback (most recent call last): File "E:\deflicker\src\neural_filter_and_refinement.py", line 6, in <module> import src.models.network_filter as net ModuleNotFoundError: No module named 'src'

Have you found the solution? I also got this same problem, still have not figured it out yet.

konfalkon commented 1 year ago

Followed instructions above and I have this after running: Traceback (most recent call last): File "E:\deflicker\src\stage1_neural_atlas.py", line 10, in <module> from src.models.stage_1.implicit_neural_networks import IMLP ModuleNotFoundError: No module named 'src' Traceback (most recent call last): File "E:\deflicker\src\neural_filter_and_refinement.py", line 6, in <module> import src.models.network_filter as net ModuleNotFoundError: No module named 'src'

Have you found the solution? I also got this same problem, still have not figured it out yet.

Solution is to remove prefix src from every line of code where it occurs. For example src.models.network_filter -> models.network_filter.

Sirfalus commented 1 year ago

Followed instructions above and I have this after running: Traceback (most recent call last): File "E:\deflicker\src\stage1_neural_atlas.py", line 10, in <module> from src.models.stage_1.implicit_neural_networks import IMLP ModuleNotFoundError: No module named 'src' Traceback (most recent call last): File "E:\deflicker\src\neural_filter_and_refinement.py", line 6, in <module> import src.models.network_filter as net ModuleNotFoundError: No module named 'src'

Have you found the solution? I also got this same problem, still have not figured it out yet.

Solution is to remove prefix src from every line of code where it occurs. For example src.models.network_filter -> models.network_filter.

Got it now, thanks so much!

gvonkreisler commented 6 months ago

Get lost of most off the =xx.xx,xx statements runs very fine with newer versions