Git Product home page Git Product logo

Comments (6)

yfchen1994 avatar yfchen1994 commented on July 29, 2024

Thanks for your interest in our work! 👋

I've updated the requirements.txt file. Please kindly pull the changes and try again. Sorry for the inconvenience caused.

from poisoning_membership.

czx1220 avatar czx1220 commented on July 29, 2024

thanks!

from poisoning_membership.

czx1220 avatar czx1220 commented on July 29, 2024

你好,我有两个疑问:

  1. 代码运行是获取数据集和模型后就立刻把他删除了吗,为什么我在对应的路径没找到任何东西
    image
  2. 关于这段代码,这里model刚获取,就del删除掉了,意义是什么呢?
    image

from poisoning_membership.

yfchen1994 avatar yfchen1994 commented on July 29, 2024

Hi,

Regarding Question 1, could you please provide additional details about the results obtained after running the code? It would be helpful to know the current sub-directories and any logging information available. Having more specific information will assist in identifying and resolving the issue quickly.

During the evaluation stage, the code reads the poisoning data and the poisoned model stored on the disk and then performs the evaluation. If the code displays the evaluation results, it indicates that the dataset and model should be located in their respective directories.


As for Question 2, before the del command is executed, the function get_poisoned_model() is called to generate the poisoned model and save it to the disk.

Subsequently, the del command is used to remove the poisoned model from the current session. This step is necessary to explicitly release the GPU memory occupied by the poisoned model. Without this explicit release, the memory used by the poisoned model may not be freed, leading to GPU memory leakage when generating additional poisoned models.

from poisoning_membership.

czx1220 avatar czx1220 commented on July 29, 2024

明白了,谢谢!我发现clean_label_attack训练的很慢,是不是没有放到gpu上运行?我没有看到gpu上面运行的代码

from poisoning_membership.

yfchen1994 avatar yfchen1994 commented on July 29, 2024

Hi,

You may monitor the GPU usage during the code execution. If you find the code is not executed on GPU, try to choose the GPU device by setting the argument --device_no. An alternative approach is to modify Line 21 of poisoning_attack.py.

Hope the above suggestions are helpful to you! 🤗

from poisoning_membership.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.