News for hackers. Stuff that matters.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by kamranjon on Thursday April 06, 2023 @10:16AM (#35468583)
Are the weights open source?
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by woopwoop on Thursday April 06, 2023 @10:34AM (#35468830)
Yes
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by lordswork on Thursday April 06, 2023 @10:49AM (#35469059)
Where? From the article:

>Currently, the code (without the weights) is available on GitHub

Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by wongarsu on Thursday April 06, 2023 @11:26AM (#35469648)
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by dragonwriter on Thursday April 06, 2023 @04:57PM (#35474320)
The weights are linked from the readme; avoiding large binary resources in GitHub repositories is fairly normal.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by Name_Chawps on Thursday April 06, 2023 @10:17AM (#35468609)
The weights are not "source".
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by sokoloff on Thursday April 06, 2023 @10:28AM (#35468721)
That is likely true in the most pedantic sense, but in practice, if I create an algorithm that works by using a series of matrix transformations against a set of carefully chosen (read: "trained") matrices and I open-source only the matrix manipulation code but not the specially chosen matrices, I think there's a fair argument to say that I haven't open-sourced the entire algorithm.

In the phrase "the model is open-source in every sense of the word", that, IMO, must include the weights.

Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by Name_Chawps on Thursday April 06, 2023 @06:42PM (#35475514)
I'd be curious to know if you think open source companies should share all of their database records too.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by sokoloff on Thursday April 06, 2023 @07:02PM (#35475714)
I think of two broad categories of database records: transactional data (data created while running the system) and domain data (data created during development and shipped to production as part of the release process).

The former type of data I wouldn't expect to ever be open-sourced. The latter type might or might not be, depending on the intent of open-sourcing the related system.

If I created a human language translation system that used a SQL database to store the dictionary (domain) data and claimed the system was open-source without shipping the domain data, I think people would rightly say that the system was not fully opened.

Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by flangola7 on Thursday April 06, 2023 @02:08PM (#35472095)
The actual source code is not important. The source code can be printed on a single A4 page, the valuable final product is the weights you get after running the code for fifty million dollars of compute time.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by Name_Chawps on Thursday April 06, 2023 @06:44PM (#35475530)
If they start claiming they're "open weights" or "open final product" I'll be up in arms.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by sokoloff on Thursday April 06, 2023 @07:17PM (#35475841)
They are claiming that. They are also delivering on that claim: https://github.com/facebookresearch/segment-anything#model-c...
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by jtsiskin on Thursday April 06, 2023 @04:54PM (#35474270)
If I autogenerated a huge amount of C based on the weights, that added/multipled variables the same way the existing code+weights does, then would it be “source”?
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by dragonwriter on Thursday April 06, 2023 @04:58PM (#35474331)
The weights seem to be under the same license, just distributed separately because it doesn’t make sense for the giant binary artifacts of training to be part of the source repository.
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by polygamous_bat on Thursday April 06, 2023 @12:06PM (#35470374)
Re:Meta Releases New AI-Based Photo Segmentation Tool to Eve... by neuronexmachina on Thursday April 06, 2023 @01:04PM (#35471269)
For anyone curious about file sizes for the PyTorch models:

* default/sam_vit_h_4b8939.pth: 2.4GB

* sam_vit_l_0b3195.pth: 1.2GB

* sam_vit_b_01ec64.pth: 358MB