Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using fine tuned SAM model for live segmentation #1

Open
haveragoyal opened this issue Jun 5, 2024 · 0 comments
Open

Using fine tuned SAM model for live segmentation #1

haveragoyal opened this issue Jun 5, 2024 · 0 comments

Comments

@haveragoyal
Copy link

haveragoyal commented Jun 5, 2024

How to use fine tuned Segment anything model on custom dataset for live camera segmentation?
As in your notebook 231112_MedSegmentAnything_FineTuning_1epoc.ipynb, you have demonstrated how to do inference on test dataset. But during live camera feed, we don't have ground truth masks so how we will prepare dataset for inference like this:

# create test dataloader
test_dataset = SAMDataset(image_paths=data_paths['test_images'], mask_paths=data_paths['test_masks'], processor=processor)
test_dataloader = DataLoader(test_dataset, batch_size=1, shuffle=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant