Hi,
I am trying to upload an image with the roboflow api using python.
The code is basically the same as the example from docs:
from roboflow import Roboflow
# Initialize the Roboflow object with your API key
rf = Roboflow(api_key="XXX")
# Retrieve your current workspace and project name
print(rf.workspace())
# Specify the project for upload
# let's you have a project at https://app.roboflow.com/my-workspace/my-project
workspaceId = 'beer-pong-ballers'
projectId = 'beerpong'
project = rf.workspace(workspaceId).project(projectId)
# Upload the image to your project
print(project.check_valid_image("./runs/detect/exp86/0_1727948853.jpg"))
project.upload("./runs/detect/exp86/0_1727948853.jpg")
Output:
loading Roboflow workspace...
{
"name": "Beer Pong Ballers",
"url": "beer-pong-ballers",
"projects": [
"beer-pong-ballers/beerpong"
]
}
loading Roboflow workspace...
loading Roboflow project...
True
Illegal instruction
Where is this illegal instruction coming from?
Thanks!