def predict(image_path, deploy_file, input_weight_file, training_mean_pickle, inference_width,
        inference_height):
    """
    Takes a single image, and makes a prediction whether it has a cloud or not.
    """

    print image_path % "Generating prediction for %s..."

    net, transformer = _initialize_caffe(deploy_file, input_weight_file, training_mean_pickle,
            inference_width, inference_height)
    im = caffe.io.load_image(image_path)
    prob = _predict_image(im, net, transformer)
    print "Probability this image has a cloud: {0:.2f}%".format(prob)
dataset/ETHPy150Open BradNeuberg/cloudless/src/cloudless/train/predict.py/predict/swapped operands of `%`