Giter VIP home page Giter VIP logo

Comments (11)

D-X-Y avatar D-X-Y commented on July 27, 2024

@UniSerj Thanks for your interest. In the up-to-date version of this repo, the search_space_name in https://github.com/D-X-Y/NAS-Projects/blob/master/scripts-search/algos/GDAS.sh#L22 is set as nas-bench-102. This is used for our NAS-Bench-102 paper.

If you want to search over the original search space of GDAS, you need to change the macro structure in https://github.com/D-X-Y/NAS-Projects/blob/master/lib/models/cell_searchs/search_model_gdas.py and add the-DARTS-search-space in https://github.com/D-X-Y/NAS-Projects/blob/master/lib/models/cell_operations.py. You do not need to change the main search file (https://github.com/D-X-Y/NAS-Projects/blob/master/exps/algos/GDAS.py).

At the moment, I do not have enough time and machines to integrate the DARTS-search-space and test whether it can match the original performance in DARTS and GDAS. I will work on this once I have some free time. Sorry for the inconvenient.

Best regards,

from autodl-projects.

UniSerj avatar UniSerj commented on July 27, 2024

@D-X-Y Thanks a lot.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

A quick update: the darts search space is added at https://github.com/D-X-Y/NAS-Projects/blob/master/lib/models/cell_operations.py#L30.
I will add the original supernet of GDAS soon.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

@UniSerj I just uploaded the searching codes of GDAS on the NASNet search space (used in the original paper). Please use the following script:

CUDA_VISIBLE_DEVICES=0 bash ./scripts-search/GDAS-search-NASNet-space.sh cifar10 1 -1

After each epoch, it will print the searched architecture at this line: <<<--->>> The 001-250-th epoch :

from autodl-projects.

Debrove avatar Debrove commented on July 27, 2024

@D-X-Y Thanks for your quick update. During reproduce the results for DARTS, I am confused that the structure is |skip_connect~0|+|skip_connect~0|skip_connect~1|+|skip_connect~0|skip_connect~1|skip_connect~2| which repeatedly occured in the most epochs after changing the space name to darts.

The question is that if I want to reproduce the searched structure like genotype for DARTS, should I modify the code of https://github.com/D-X-Y/AutoDL-Projects/blob/master/lib/models/cell_searchs/search_model_darts.py like https://github.com/D-X-Y/AutoDL-Projects/blob/master/lib/models/cell_searchs/search_model_gdas_nasnet.py.

Because I think the structure shown above is different from the structure from genotype for DARTS where each nodes have two operations, but in the structure shown above, there is one opreation in the first node, two operations in the second node and three in the third node. Do I misunderstand something? Please point out.

Thanks a lot.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

hi @Debrove |skip_connect~0|+|skip_connect~0|skip_connect~1|+|skip_connect~0|skip_connect~1|skip_connect~2| is the DARTS result on the NAS-Bench-201 search space.

Yes, you should modify it as search_model_gdas_nasnet.py, but I just did it for you.
Now, you can use the following script to run the first-order DARTS with the DARTS(NASNet) search space.

CUDA_VISIBLE_DEVICES=0 bash ./scripts-search/DARTS1V-search-NASNet-space.sh cifar10 -1

Your understanding is correct. In this repo, I implemented multiple search spaces.

from autodl-projects.

Debrove avatar Debrove commented on July 27, 2024

Hi @D-X-Y , I found something confused that the model_config is GDAS-NASNet-CIFAR.config in DARTS1V-search-NASNet-space.sh#L38 and the name is GDAS in DARTS-NASNet-CIFAR.config#L3.

But when I change the model_config to DARTS, and meanwhile the name has changed to DARTS, it occurs a runtime error that the CUDA is out of memory. Is that something wrong?

Thank you.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

@Debrove Sorry it is a typo in DARTS-NASNet-CIFAR.config, and I just fixed in the last commit. I also modify the batchsize in DARTS.config to 64, and you should be able to run now.

from autodl-projects.

Debrove avatar Debrove commented on July 27, 2024

@D-X-Y Could you please update the SETN in NASNet search space if convenient. Thank you very much.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

@Debrove thanks for your interest. I will work on this when I'm available.

from autodl-projects.

D-X-Y avatar D-X-Y commented on July 27, 2024

As all questions of GDAS have been answered, I will temporally close this issue.

from autodl-projects.

Related Issues (20)

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.