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
There are several command line arguments, the important ones are listed below
40
38
41
39
-`--dataset`: path to training dataset, the path should point to a folder containing another folder with all the training images. I used COCO 2014 Training images dataset [80K/13GB][(download)](https://cocodataset.org/#download).
42
40
-`--style-image`: path to style-image.
43
41
-`--save-model-dir`: path to folder where trained model will be saved.
44
-
-`--cuda 0|1`: set it to 1 for running on GPU, 0 for CPU.
45
-
-`--mps`: use MPS device backend.
46
-
-`--xpu`: use XPU device backend.
42
+
-`--accel`: use accelerator.
43
+
44
+
If`--accel` argument is given, pytorch will search for available hardware acceleration device and attempt to use it. This example is known to work on CUDA, MPS and XPU devices.
47
45
48
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