tonyassi commited on
Commit
2792cf2
·
verified ·
1 Parent(s): 945e62c

Delete WINDOWS_INSTALLATION.md

Browse files
Files changed (1) hide show
  1. WINDOWS_INSTALLATION.md +0 -89
WINDOWS_INSTALLATION.md DELETED
@@ -1,89 +0,0 @@
1
- # [FILM](https://github.com/google-research/frame-interpolation): Windows Installation Instructions
2
-
3
- ## Anaconda Python 3.9 (Optional)
4
-
5
- #### Install Anaconda3 Python3.9
6
- * Go to [https://www.anaconda.com/products/individual](https://www.anaconda.com/products/individual) and click the "Download" button.
7
- * Download the Windows [64-Bit](https://repo.anaconda.com/archive/Anaconda3-2021.11-Windows-x86_64.exe) or [32-bit](https://repo.anaconda.com/archive/Anaconda3-2021.11-Windows-x86.exe) Graphical Installer, depending on your system needs.
8
- * Run the downloaded (`.exe`) file to begin the installation.
9
- * (Optional) Check the "Add Anaconda3 to my PATH environment variable". You may get a 'red text' warning of its implications, you may ignore it for this setup.
10
-
11
- #### Create a new Anaconda virtual environment
12
- * Open a new Terminal
13
- * Type the following command:
14
- ```
15
- conda create -n frame_interpolation pip python=3.9
16
- ```
17
- * The above command will create a new virtual environment with the name `frame_interpolation`
18
-
19
- #### Activate the Anaconda virtual environment
20
- * Activate the newly created virtual environment by typing in your terminal (Command Prompt or PowerShell)
21
- ```
22
- conda activate frame_interpolation
23
- ```
24
- * Once activated, your terminal should look like:
25
- ```
26
- (frame_interpolation) <present working directory> >
27
- ```
28
-
29
- ## NVIDIA GPU Support
30
- #### Install CUDA Toolkit
31
- * Go to [https://developer.nvidia.com/cuda-11.2.1-download-archive](https://developer.nvidia.com/cuda-11.2.1-download-archive) and select your `Windows`.
32
- * Download and install `CUDA Tookit 11.2.1`.
33
- * Additional CUDA installation information available [here](https://docs.nvidia.com/cuda/archive/11.2.2/cuda-installation-guide-microsoft-windows/index.html).
34
-
35
- #### Install cuDNN
36
- * Go to [https://developer.nvidia.com/rdp/cudnn-download](https://developer.nvidia.com/rdp/cudnn-download).
37
- * Create a user profile (if needed) and login.
38
- * Select `cuDNN v8.1.0 (January 26th, 2021), for CUDA 11.0,11.1 and 11.2`.
39
- * Download [cuDNN Library for Widnows (x86)](https://developer.nvidia.com/compute/machine-learning/cudnn/secure/8.1.0.77/11.2_20210127/cudnn-11.2-windows-x64-v8.1.0.77.zip).
40
- * Extract the contents of the zipped folder (it contains a folder named `cuda`) into `<INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\`. `<INSTALL_PATH>` points to the installation directory specified during CUDA Toolkit installation. By default, `<INSTAL_PATH> = C:\Program Files`.
41
-
42
- #### Environment Setup
43
- * Add the following paths to your 'Advanced System Settings' > 'Environment Variables ...' > Edit 'Path', and add:
44
- * <INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\bin
45
- * <INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\libnvvp
46
- * <INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\include
47
- * <INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\extras\CUPTI\lib64
48
- * <INSTALL_PATH>\NVIDIA GPU Computing Toolkit\CUDA\v11.2\cuda\bin
49
-
50
- #### Verify Installation
51
- * Open a **new** terminal and type `conda activate frame_interpolation`.
52
- * Install (temporarily) tensorflow and run a simple operation, by typing:
53
- ```
54
- pip install --ignore-installed --upgrade tensorflow==2.6.0
55
- python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
56
- ```
57
- * You should see success messages: 'Created device /job:localhost/replica:0/task:0/device:GPU:0'.
58
-
59
- ## FILM Installation
60
- * Get Frame Interpolation source codes
61
- ```
62
- git clone https://github.com/google-research/frame-interpolation
63
- cd frame-interpolation
64
- ```
65
- * Install dependencies
66
- ```
67
- pip install -r requirements.txt
68
- conda install -c conda-forge ffmpeg
69
- ```
70
- * Download pre-traned models, detailed [here](https://github.com/google-research/frame-interpolation#pre-trained-models).
71
-
72
- ## Running the Codes
73
- * One mid-frame interpolation. Note: `python3` may not be recognized in Windows, so simply drop `3` as below.
74
- ```
75
- python -m eval.interpolator_test --frame1 photos\one.png --frame2 photos\two.png --model_path <pretrained_models>\film_net\Style\saved_model --output_frame photos\output_middle.png
76
- ```
77
-
78
- * Large resolution mid-frame interpolation: Set `block_height` and `--block_width` to subdivide along the height and width to create patches, where the interpolator will be run iteratively, and the resulting interpolated mid-patches will be reconstructed into a final mid-frame. In the example below, will create and run on 4 patches (2*2).
79
- ```
80
- python -m eval.interpolator_test --frame1 photos\one.png --frame2 photos\two.png --block_height 2 --block_wdith 2 --model_path <pretrained_models>\film_net\Style\saved_model --output_frame photos\output_middle.png
81
- ```
82
- * Many in-between frames interpolation
83
- ```
84
- python -m eval.interpolator_cli --pattern "photos" --model_path <pretrained_models>\film_net\Style\saved_model --times_to_interpolate 6 --output_video
85
- ```
86
-
87
- ## Acknowledgments
88
-
89
- This windows installation guide is heavily based on [tensorflow-object-detection-api-tutorial](https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html) .