{"record":{"id":"1afb3c387ab6342f","repo":"tensorflow/models","slug":"bucket-path-must-be-non-empty-starting-with-gs-1afb3c","errorCode":null,"errorMessage":"Bucket path must be non-empty starting with 'gs://'","messagePattern":"Bucket path must be non-empty starting with 'gs://'","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/Triton_TF_Cloud_Deployment/client/inference_pipeline.py","lineNumber":125,"sourceCode":"\nAREA_THRESHOLD = None\nHEIGHT_TRACKING = 300\nWIDTH_TRACKING = 300\nCIRCLE_RADIUS = 7\nFONT = cv2.FONT_HERSHEY_SIMPLEX\nFONTSCALE = 1\nCOLOR = (255, 0, 0)\n\n\ndef main(_) -> None:\n  # Check if the input and output directories are valid.\n  if (\n      not INPUT_DIRECTORY.value\n      or not OUTPUT_DIRECTORY.value\n      or not INPUT_DIRECTORY.value.startswith(\"gs://\")\n      or not OUTPUT_DIRECTORY.value.startswith(\"gs://\")\n  ):\n    raise ValueError(\"Bucket path must be non-empty starting with 'gs://'\")\n\n  # Copy the images folder from GCP to the present directory.\n  input_directory = (INPUT_DIRECTORY.value).rstrip(\"/\\\\\")\n  command = f\"gsutil -m cp -r {input_directory} .\"\n  subprocess.run(command, shell=True, check=True)\n\n  # Create a folder to store the predictions.\n  prediction_folder = os.path.basename(input_directory) + \"_prediction\"\n  os.makedirs(prediction_folder, exist_ok=True)\n\n  # Create a log directory and a logger for logging.\n  log_name = os.path.basename(INPUT_DIRECTORY.value)\n  log_folder = os.path.join(os.getcwd(), \"logs\")\n  os.makedirs(log_folder, exist_ok=True)\n  logger = utils.create_log_file(log_name, log_folder)\n\n  # Read the labels which the model is trained on.\n  labels_path = os.path.join(os.getcwd(), \"labels.csv\")","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/Triton_TF_Cloud_Deployment/client/inference_pipeline.py#L107-L143","documentation":"Error \"Bucket path must be non-empty starting with 'gs://'\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/Triton_TF_Cloud_Deployment/client/inference_pipeline.py:125 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}