Project Type: Object Classification
Operating System: Windows 10
from roboflow import Roboflow
rf = Roboflow(api_key="...........................")
project = rf.workspace().project("lego-brick-classifier")
model = project.version(1).model
# infer on a local image
print(model.predict("your_image.jpg").json())
I got the above code (from Roboflow) after the model is trained. The error is:
cannot import name 'PredictionGroup' from 'roboflow' (C:\Users\abc\Anaconda3\envs\roboflow\lib\site-packages\roboflow\__init__.py)
I can't find anything about PredictionGroup which can give me an idea on how to fix the error.