Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Version problems? #15

Open
Evoload opened this issue Dec 4, 2022 · 3 comments
Open

Version problems? #15

Evoload opened this issue Dec 4, 2022 · 3 comments

Comments

@Evoload
Copy link

Evoload commented Dec 4, 2022

I'm trying to run code exaple
------code--------

from mlmodelwatermarking.markface import TrainerWM

trainer = TrainerWM(model=your_model)
ownership = trainer.watermark()
watermarked_model = trainer.get_model()


It shows an error:
ModuleNotFoundError: No module named 'sklearn'

When I'm trying to install sklearn it says this:
Requirement already satisfied: sklearn in c:\users\codreanu\appdata\local\programs\python\python38\lib\site-packages (0.0.post1)

@sofianelounici
Copy link
Contributor

Hi @Evoload, if you are running the code in a Google Colab notebook, it works fine: https://colab.research.google.com/drive/1K3PuBLriGrnyjncjdZtN5-fF8ZU2Zg_0?usp=sharing. You just need to find the correct hyperparameters for the fine-tuning process.

@manxiaoyu
Copy link

Hi @Evoload, if you are running the code in a Google Colab notebook, it works fine: https://colab.research.google.com/drive/1K3PuBLriGrnyjncjdZtN5-fF8ZU2Zg_0?usp=sharing. You just need to find the correct hyperparameters for the fine-tuning process.您好,如果您在 Google Colab 笔记本中运行代码,则它可以正常工作:https://colab.research.google.com/drive/1K3PuBLriGrnyjncjdZtN5-fF8ZU2Zg_0?usp=sharing。您只需要为微调过程找到正确的超参数即可。

In fact,I tried it just now by this link.But it didnt work,either.

@sofianelounici
Copy link
Contributor

@manxiaoyu hi, the library is no longer maintened, and there is probably several errors related to dependencies. If you are interested in the library, I encourage you to fork the repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants