You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add mps device
* Add --mps to run_python_examples.sh
* Update imagenet with mps device
* Use curl in run_python_examples.sh to accommodate macOS devices
* Fix for https://github.com/pytorchq/examples/issues/1060
-`--output-image`: path for saving the output image.
28
28
-`--content-scale`: factor for scaling down the content image if memory is an issue (eg: value of 2 will halve the height and width of content-image)
29
29
-`--cuda`: set it to 1 for running on GPU, 0 for CPU.
30
+
-`--mps`: set it to 1 for running on macOS GPU
30
31
31
32
Train model
32
33
@@ -40,6 +41,7 @@ There are several command line arguments, the important ones are listed below
40
41
-`--style-image`: path to style-image.
41
42
-`--save-model-dir`: path to folder where trained model will be saved.
42
43
-`--cuda`: set it to 1 for running on GPU, 0 for CPU.
44
+
-`--mps`: set it to 1 for running on macOS GPU
43
45
44
46
Refer to `neural_style/neural_style.py` for other command line arguments. For training new models you might have to tune the values of `--content-weight` and `--style-weight`. The mosaic style model shown above was trained with `--content-weight 1e5` and `--style-weight 1e10`. The remaining 3 models were also trained with similar order of weight parameters with slight variation in the `--style-weight` (`5e10` or `1e11`).
0 commit comments