Divide an image into multiple segments for applications like medical imaging, object detection, and computer vision tasks
Basic usage
Send an image to a model to generate segmentation masks
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('sayeed99/segformer-b3-fashion');// provide the model with inputconst input = { "url": "https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });
from bytez import Bytez# insert your keysdk = Bytez("BYTEZ_KEY")# choose your modelmodel = sdk.model("sayeed99/segformer-b3-fashion")# provide the model with inputinput = { "url": "https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9"}# send to the modelresult = model.run(input)# observe the outputprint({"error": result.error, "output": result.output})