I noticed that in this tutorial, the code ToDevice('cuda:0') when creating the pipeline has not been changed to ToDevice(ch.device('cuda:0')) like other tutorial or its script, which will raise the error: AttributeError: 'str' object has no attribute 'type'.