I'm not sure where to even begin to tell you how to get this running, but I can tell you how I got it working for me.
This is a scholarly project, so they tend to be focused more on results than making it easy for the uninitiated to install and run. You'll have to jump through several hoops to get it up and going.
I'm running Windows 10, so if you're using another operating system the instructions may be slightly different.
Important note: Artificial Intelligence algorithms are usually ran on the GPU because these "tensor type" systems are much more easily solved on GPU architecture. As of time of writing this, only NVIDIA graphics cards have the accompanying software to allow the AI to run on the GPU. This software is called CUDA and you will likely need to install this to speed up the calculations. If you don't have an NVIDIA graphics card, then you will have to run it on your CPU. Even the fastest CPUs are an order of magnitude slower than GPU for these calculations, so expect it to be slow. The authors don't specifically mention any of this, so it is possible that it somehow doesn't require CUDA to run on the GPU, but I believe it does.
The first thing you'll want to do is install Python 3:
https://www.youtube.com/watch?v=3lGhtIqT0Tk
Now that you have Python installed, PIP should have been installed with it which you'll need to download all the other dependent packages.
Go to the SC-FEGAN Github page and look at the items in the
Dependencies section:
https://github.com/JoYoungjoo/SC-FEGAN
Open command prompt on your computer. This is where we will enter our terminal commands. If you don't have a shortcut for command prompt saved, you can find it using the search bar next to your start menu at the bottom left corner of your desktop and searching for "CMD".
Inside of command prompt, use PIP to install each of the dependent packages that are on the dependencies list. For example, to install tensorflow, type "PIP install tensorflow" and press enter. Repeat this step for each item in the dependencies list.
Next, you will need to clone their Github repository. The easiest way is with Github desktop, but if you don't want to install that, you should be able to just download the repository by clicking on the green
"Clone or downlaod" button near the top right of their Github page. Use the "
Download ZIP" option. Extract the contents of the zip file wherever you like. Open the "SC_FEGAN" folder you just extracted and if it doesn't have a folder in there named ckpt, then create one. I don't know why they don't mention that in their instructions, but it almost threw me for a loop.
Next you will need to download their model. This contains all the trained weights that governs how the AI reacts to inputs. On their Github page, right beneath the Dependencies table, there is a link to the model that's hosted on their Google Drive account. Go there and download "SC-FEGAN.ckpt.data-00000-of-00001" into your SC_FEGAN/ckpt folder.
If you don't have and NVIDIA graphics card that supports CUDA, I believe you will have to run the program on your CPU instead. You will have to modify the file "demo.yaml" using notepad, change "GPU_NUM 1" to "GPU_NUM" (basically just erase the number). Save and close the file and you're good to go.
Now open up command prompt again. Navigate to your SC_FEGAN folder using the change directory command (cd) then type "python demo.py" and hit enter. It should run from there.
- pythonrundemo.PNG (8.86 KiB) Viewed 3635 times
If you have any trouble, just PM me so we don't clutter up the thread too much.