roboflow / notebooks

Examples and tutorials on using SOTA computer vision models and techniques. Learn everything from old-school ResNet, through YOLO and object-detection transformers like DETR, to the latest models like Grounding DINO and SAM.
https://roboflow.com/models
5.27k stars 814 forks source link

added save and deploy for custom v8 instance seg #197

Closed josephofiowa closed 1 year ago

josephofiowa commented 1 year ago

Description

Please include a summary of the change and which issue is fixed or implemented. Please also include relevant motivation and context (e.g. links, docs, tickets etc.).

List any dependencies that are required for this change.

Type of change

Please delete options that are not relevant.

How has this change been tested, please provide a testcase or example of how you tested the change?

I ran a custom training of YOLOv8 instance seg and validated that the upload path is correct.

Any specific deployment considerations

Mostly here! https://docs.roboflow.com/deploy/hosted-api/instance-segmentation

Docs

No docs changes.

josephofiowa commented 1 year ago

Ideally, this change should be complemented with also showing inference of the custom model in the next cell.

Loading that model would be:

model = project.version(dataset.version).model

capjamesg commented 1 year ago

@josephofiowa Thank you for the contribution! Can you replace train2/ with train/ in the upload path in the notebook? train2/ will only be created if a user has trained a second version of a model.

josephofiowa commented 1 year ago

Good catch! Forgot I had trained a second model when testing this. Updated.