We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c0efb commit 208d4f6Copy full SHA for 208d4f6
demo.py
@@ -19,7 +19,7 @@
19
parser.add_argument('--style_image_path', default='./images/style1.png')
20
parser.add_argument('--style_seg_path', default=[])
21
parser.add_argument('--output_image_path', default='./results/example1.png')
22
-parser.add_argument('--cuda', type=bool, default=True, help='Enable CUDA.')
+parser.add_argument('--cuda', type=int, default=1, help='Enable CUDA.')
23
args = parser.parse_args()
24
25
# Load model
@@ -30,7 +30,8 @@
30
print("Fail to load PhotoWCT models. PhotoWCT submodule not updated?")
31
exit()
32
33
-p_wct.cuda(0)
+if args.cuda:
34
+ p_wct.cuda(0)
35
36
process_stylization.stylization(
37
p_wct=p_wct,
0 commit comments