Skip to content

training and validation #272

Open
Open

Description

@bbetula

The training code of this model seems to call YOLO for training. Shouldn't the trained model be a YOLOv8n-seg type model, rather than a FastSAM type model?

see this
from ultralytics import YOLO
model = YOLO(model="yolov8x-seg.yaml",
)
model.train(data="sa.yaml",
epochs=100,
batch=32,
imgsz=1024,
overlap_mask=False,
save=True,
save_period=5,
device='0,1,2,3,4,5,6,7',
project='fastsam',
name='test',
val=False,)

Activity

  1. harshnandwana commented on Jul 7, 2025

    @harshnandwana

    no that is correct as it requires yaml file where as your understanding is because of the folder structure having pt

  2. 240190701amber-max commented on Feb 2, 2026

    @240190701amber-max

    same question.

  3. Armadillooutfitter commented on Feb 4, 2026

    @Armadillooutfitter

    can someone kick me down some xrp please for the answer. lol...

    Short answer: yes, your intuition is right — the weights produced by that code are technically YOLOv8-Seg weights, not a “pure” FastSAM architecture.
    But that’s intentional, and it’s how FastSAM is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions