Giter Club home page Giter Club logo

few-shot-nas's People

Contributors

aoiang avatar belindanju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

few-shot-nas's Issues

RuntimeError: view size is not compatible with input tensor's size and stride

python test.py --arch small
08/17 02:53:34 PM gpu device = 0
08/17 02:53:34 PM args = Namespace(data='../data', batch_size=96, lr=0.025, momentum=0.9, wd=0.0003, report_freq=50, gpu=0, epochs=600, layers=20, model_path='saved_models', auxiliary_weight=0.4, cutout=False, cutout_length=16, drop_path_prob=0.2, seed=0, arch='small', save='EXP')
08/17 02:53:37 PM param size = 3.789982MB
Files already downloaded and verified
/home/captain/.local/lib/python3.9/site-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /pytorch/c10/core/TensorImpl.h:1156.)
return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
tensor(95., device='cuda:0')
Traceback (most recent call last):
File "/home/captain/competition/study/Few-shot-NAS/Few-Shot-NAS_cifar10/test.py", line 134, in
main()
File "/home/captain/competition/study/Few-shot-NAS/Few-Shot-NAS_cifar10/test.py", line 97, in main
valid_acc, valid_obj = infer(valid_queue, model, criterion)
File "/home/captain/competition/study/Few-shot-NAS/Few-Shot-NAS_cifar10/test.py", line 117, in infer
prec1, prec5 = utils.accuracy(logits, target, topk=(1, 5))
File "/home/captain/competition/study/Few-shot-NAS/Few-Shot-NAS_cifar10/utils.py", line 43, in accuracy
correct_k = correct[:k].view(-1).float().sum(0)
RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.

Reproduce the Kentall's Tau of Few-shot NAS

Really appreciate your great work and I have some questions when reproducing your work.

I reproduced the ranking consistency results of One-shot NAS with kendall's Tau of 0.5438, but failed to reproduce the results of few-shot nas. I got only 0.018 kendall's tau on few-shot nas.

Here is my scripts for running few-shot nas:

  1. train the few-shot supernets
bash ./supernet/few-shot/train.sh cifar10 0 ../TORCH_HOME seed-0-last-info.pth 4
  1. evaluate the few-shot nas
bash ./supernet/few-shot/eval.sh cifar10 0 ../TORCH_HOME ./supernet_info 
  1. get the rank consistency
python rank.py 

and we got:

image

Here are parts of log when evaluating few-shot nas:

image

I would be grateful if you can help me with the reproduction problem. ๐Ÿ˜„

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.