Giter VIP home page Giter VIP logo

Comments (6)

JaminFong avatar JaminFong commented on September 15, 2024

Hi, thanks for your interest in our work. Could you please provide the complete searching log file? Thus, I can get detailed information about your running. In addition, how many GPUs do you use in your experiment?

from densenas.

mileswyn avatar mileswyn commented on September 15, 2024

log.txt
I’m so glad you can help me out of this LOL.
I use only one gpu since I got a bug when I use multi-gpu. I guess maybe it's my pytorch version did not match(I use pytorch 1.7.0/cuda10.2).
Btw, I miss another bug when I run the search script before I got the log file.
That is, in OPTIMIZER.arch_step, I change the parameter 'search_stage' from 2 to 1 in function 'sample_branch', since it return a bug in function 'comp_rescale_value'. And I dont know if this change makes some difference of the derived model.
Thanks a lot!

from densenas.

JaminFong avatar JaminFong commented on September 15, 2024

Hi! Could please provide all the config details of your experiment, which should have been written into the log file but I didn't find it? In addition, running with a single GPU may cause the batch size too small to support the optimization. And what is the bug you mentioned on comp_rescale_value? Manually changing the sample_branch parameter may lead to some problems.

from densenas.

mileswyn avatar mileswyn commented on September 15, 2024

###############
12/11 15:59:08 epoch 0 arch_lr 3.000000e-04
Traceback (most recent call last):
File "/hdd1/wyn/DenseNAS/run_apis/search.py", line 158, in
super_model, epoch, 'Arch', search_stage)
File "/hdd1/wyn/DenseNAS/run_apis/trainer.py", line 153, in train
logits, loss, sub_obj = self.search_optim.arch_step(input, target, model, search_stage)
File "/hdd1/wyn/DenseNAS/run_apis/optimizer.py", line 54, in arch_step
model)
File "/hdd1/wyn/DenseNAS/run_apis/optimizer.py", line 113, in rescale_arch_params
rescale_params(alpha_head_weights_drop, model.module.alpha_head_weights, alpha_head_index)
File "/hdd1/wyn/DenseNAS/run_apis/optimizer.py", line 109, in rescale_params
indices_branch)
File "/hdd1/wyn/DenseNAS/run_apis/optimizer.py", line 100, in comp_rescale_value
rescale_mat = torch.zeros_like(new_weights).scatter_(0, index, rescale_value)
RuntimeError: Expected index [2] to be smaller than self [6] apart from dimension 0 and to be smaller size than src []

Process finished with exit code 1

###############
config.txt

Hi! Im not sure if these are enough. Please tell me if I miss some important information.

from densenas.

JaminFong avatar JaminFong commented on September 15, 2024

The higher version of PyTorch seems to carry incompatibility issues, as also mentioned in issues-17. We have tested the code on PyTorch 1.0 - 1.2. Could you have a try with a lower PyTorch version with the defaut parameters, e.g. search_stage, not changed, if needed?

from densenas.

mileswyn avatar mileswyn commented on September 15, 2024

The higher version of PyTorch seems to carry incompatibility issues, as also mentioned in issues-17. We have tested the code on PyTorch 1.0 - 1.2. Could you have a try with a lower PyTorch version with the defaut parameters, e.g. search_stage, not changed, if needed?

Thx a lot for your kind advice. I'll have a try then!

from densenas.

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.