diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-08-17 17:46:16 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-08-17 17:46:16 +0300 |
commit | 8f4ab67633231a96736da860861f35c044b30323 (patch) | |
tree | d99353e53d2c36d829a505b2c6141412e9f8a025 | |
parent | 7e6c62c5ad9aace4459bc8c98fcbe561fa609983 (diff) |
Changed URL to something that works.
Automatic download has been disabled and will come back when I find a
persistent cloud hoster that is wget/curl friendly.
Changes to be committed:
modified: README.md
modified: neuralart.py
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | neuralart.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ Neural Style Transfer done from the CLI using a VGG backbone and presented as an MP4. -Weights can be downloaded from [here](https://m1.afileditch.ch/ajjMsHrRhnikrrCiUXgY.pth). The downloaded file should be placed in `./weights/` and any file will be ignored from there when pushing, as seen in `./.gitignore`. Update: Alternatively, if the `./weights/` directory is empty, `./neuralart.py` will automatically download publicly available VGG19 weights for the user. +Weights can be downloaded from [here](https://drive.google.com/file/d/1Pfh-dHvCdhn97MpLT0_I6QAAzvejqs1i/). The downloaded file should be placed in `./weights/` and any file will be ignored from there when pushing, as seen in `./.gitignore`. Update: Alternatively, if the `./weights/` directory is empty, `./neuralart.py` will automatically download publicly available VGG19 weights for the user. More in depth information about Neural Style Transfer ( NST ) can be found in this great [paper](https://arxiv.org/abs/1705.04058). Make sure to check [Requirements](#requirements) and [Usage](#usage). diff --git a/neuralart.py b/neuralart.py index 7aab03e..349c989 100644 --- a/neuralart.py +++ b/neuralart.py @@ -33,7 +33,7 @@ n_instances = os.popen('ps aux | grep "python neuralart.py" | wc -l').read() if int(n_instances) > 3: print("Woah, running 2 or more instances of neural-art at the same time?\nThis is an experimental feature as of now... try it later favorably :3") ### check if there are any weights to use, if not, download the default provided ones -if int(os.popen('ls -l weights | wc -l').read()) == 1: os.system('wget -O "weights/vgg_conv_weights.pth" "https://m1.afileditch.ch/ajjMsHrRhnikrrCiUXgY.pth"') +#if int(os.popen('ls -l weights | wc -l').read()) == 1: os.system('wget -O "weights/vgg_conv_weights.pth" "https://m1.afileditch.ch/ajjMsHrRhnikrrCiUXgY.pth"') ### Defining neural architecture |