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

Can LayoutLM be used for commercial purpose? #352

Closed
ghost opened this issue Jun 28, 2021 · 19 comments
Closed

Can LayoutLM be used for commercial purpose? #352

ghost opened this issue Jun 28, 2021 · 19 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2021

**Can LayoutLM be used for commercial purposes? And how LayoutLM license is different than other versions of LayoutLM (LayoutLMv2, LayoutLMFT, layoutXLM)
Will license hold for both train model and code.
Or one can use a trained model provide by other sources such as Docbank for commercial purposes.

I have noticed that the LayoutLM folder is showing deprecated. What does that mean in terms of use and license?
**

Model I am using (LayoutLM):

@wolfshow
Copy link
Contributor

@rohitchoudhary-magicfinserv Only LayoutLMv1 can be used for commercial purpose, while others are currently under the CC-BY-NC-SA license.

@ghost
Copy link
Author

ghost commented Jun 29, 2021

Does LayoutLMv1 is deprecated?

@wolfshow
Copy link
Contributor

Does LayoutLMv1 is deprecated?

Only the previous fine-tuning code is deprecated as we move to layoutlmft, the model is not deprecated

@aa-morgan
Copy link

The license on the layoutlmv2-base-uncased model hosted on HuggingFace is cc-by-sa-4.0. Does this mean that this model can be used commercially? Do you know why it differs from this GitHub repo?
Thanks,
Alex

@brandenkmurray
Copy link

It would be great to get some additional clarification on the licensing. I'm finding different licensing in different places and it is confusing.

So does this mean that even LayouLMv1 cannot be fine-tuned fore commercial use using this repo? Or does that only apply to LayoutLMv2?

Does this mean that the LayouLMv2 code in huggingface is fine for commercial use even though the [nearly identical] code in unilm cannot be used for commercial use? This is what I find most confusing. Or does huggingface need to change the licenses in their LayouLMv2 files?

Thanks!

@athuljays
Copy link

I am also curious about this. Can someone from Microsoft please clarify?

@wolfshow
Copy link
Contributor

wolfshow commented Oct 9, 2021

@brandenkmurray @athuljays Thanks for the interest!

LayoutLMv1 can be completely used for commercial purpose. For others (LayoutLMv2/LayoutXLM), the pre-trained models from this repo are not for commercial purpose right now.

@colintoal
Copy link

Will the pre-trained models be made available for commercial use at some time in the future ? It severely limits the applicability and desirability of using these models to make them NC only. Is this a liability mitigation by Microsoft that will be lifted in the future or is this a decision to effectively close-source these models ?

@palinaya
Copy link

@rohitchoudhary-magicfinserv Only LayoutLMv1 can be used for commercial purpose, while others are currently under the CC-BY-NC-SA license.

@wolfshow, could you please clarify one more time one thing: is it okay to use code from the LayoutLMv3/2 repo for commercial purposes?

@DiddyC
Copy link

DiddyC commented Sep 15, 2022

@PolinaYa - Yes, the license has changed to MIT in both huggingface website and the original unlim repo. Have fun!

@jack-gits
Copy link

seems not changed.

image

@nbgit10
Copy link

nbgit10 commented Jan 11, 2023

Using this commit LayoutLM3 was distributed with MIT license:
https://github.com/microsoft/unilm/tree/2239a415aacfaff3af37c7d43995a4f0a9c41c04/

This might have been by accident as it switched back to CC-BY-NC-SA a few days after but it was still released with that license. Also the very first release of LayoutLM3 was released under MIT license. Again, might have been by accident but the claim that LayoutLM3 never has been available for commercial use seems to not hold up. Might be worth talking to a lawyer before using the code in a commercial setting but it could be that you can in fact use it.

@sudhitpanchal
Copy link

So can we use Layout XLM or Layout XLM 2?

@fsommers
Copy link

Yes, what's the current status of the license?

@sudhitpanchal
Copy link

I came to know that layoutLM v1 is commercial available rest LayoutLMs V2,V3 are not commerical available i got this from their offical github repo

@mllife
Copy link

mllife commented Jul 4, 2023

@brandenkmurray @athuljays Thanks for the interest!

LayoutLMv1 can be completely used for commercial purpose. For others (LayoutLMv2/LayoutXLM), the pre-trained models from this repo are not for commercial purpose right now.

@wolfshow Can a fine-tuned model v2/v3 on custom dataset with different weights be used for commercial purpose?

@sudhitpanchal
Copy link

No you can't use LayoutLM V2/V3 for commercial purpose you can use LayoutLmV1 but that is too old not as good as V2, V3

@mllife
Copy link

mllife commented Jul 4, 2023

@sudhitpanchal , are you sure? i think its only about model weights, if we train on our own data; it will be different weights.
@wolfshow can you confirm it?

@sudhitpanchal
Copy link

I read that in the documentation and even asked in Public python off-topic groups, Still would work on it if it seems to be legal.

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