netevaluate[img_,device_:"CPU"]:=Block[{net,resized,encData,dec,mean,var,prob},net=NetModel["Ademxapp Model A1 Trained on Cityscapes Data"];resized=ImageResize[img,{1024}];encData=Normal@NetExtract[net,"Input"];dec=NetExtract[net,"Output"];{mean,var}=Lookup[encData,{"MeanImage","VarianceImage"}];prob=NetReplacePart[net,{"Input"NetEncoder[{"Image",ImageDimensions@resized,"MeanImage"mean,"VarianceImage"var}],"Output"Automatic}][resized,TargetDevicedevice];prob=ArrayResample[Normal@prob,Append[Reverse@ImageDimensions@img,19]];dec[prob]]