ml-model-watermarking icon indicating copy to clipboard operation
ml-model-watermarking copied to clipboard

Version problems?

Open Evoload opened this issue 2 years ago • 3 comments

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)

Evoload avatar Dec 04 '22 10:12 Evoload

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.

sofianelounici avatar Dec 04 '22 11:12 sofianelounici

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.

manxiaoyu avatar Apr 24 '24 03:04 manxiaoyu

@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.

sofianelounici avatar Apr 24 '24 07:04 sofianelounici