liamcli / randomnas_release Goto Github PK
View Code? Open in Web Editor NEWCode release for paper "Random Search and Reproducibility for NAS"
Code release for paper "Random Search and Reproducibility for NAS"
evaluate()
in searchers/random_weight_share.py
has return 1-top1.avg
on line 219. Since it is a percentage, it should be return 100-top1.avg
Hi, thanks for your great job! When I try to reproduce your results, I train the supernet using he default parameters but the accuracy of supernet is only about 50%. Is it right?
Best!
https://github.com/liamcli/randomNAS_release/blob/master/searchers/random_weight_share.py#L2 hard coded the path of the dep, which caused an error when I run it.
I ran the code "random_weight_share.py" ,
in the final, it shows
"File "random_weight_share.py", line 163, in main
with open('./tmp/arch', 'w') as f:
IsADirectoryError: [Errno 21] Is a directory: './tmp/arch'"
Is ti need to add a txt file in the path like "./tmp/arch/arch.txt" ?
Or I miss some details?
The authors report the results for the random search baseline without any weight sharing but do not provide the code to reproduce the baseline's result. This would be helpful in fully reproducing their tables in the results section and not just their weight-shared versions.
Hi,
While trying to run python parse_cnn_arch.py "[arch_str]", I am confused about what should be the argument? What is arch_str?
As title.
Got the RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED when executing the CNN model.
(torch) baijin@pku:~/Code/randomNAS/searchers$ python random_weight_share.py
07/19 12:41:24 PM Namespace(batch_size=64, benchmark='cnn', config='search', epochs=100, eval_only=0, grad_clip=0.25, init_channels=16, save_dir=None, seed=100)
[Errno 2] No such file or directory: './result/cnn/random/trial100/weights.pt'
07/19 12:41:31 PM param size = 1.930618MB
07/19 12:41:31 PM param size: 1930618
07/19 12:41:31 PM Args: {'data': '/home/baijin/Dataset/cifar10/', 'epochs': 100, 'learning_rate': 0.025, 'batch_size': 64, 'learning_rate_min': 0.001, 'momentum': 0.9, 'weight_decay': 0.0003, 'init_channels': 16, 'layers': 8, 'drop_path_prob': 0.3, 'grad_clip': 0.25, 'train_portion': 0.5, 'seed': 100, 'log_interval': 50, 'save': './result/cnn/random/trial100', 'gpu': 0, 'cuda': True, 'cutout': False, 'cutout_length': 16, 'report_freq': 50}
07/19 12:41:31 PM Model total parameters: 1930618
07/19 12:41:31 PM budget: 39062
Traceback (most recent call last):
File "random_weight_share.py", line 184, in <module>
main(args)
File "random_weight_share.py", line 155, in main
searcher.run()
File "random_weight_share.py", line 75, in run
self.model.train_batch(arch)
File "/home/baijin/Code/randomNAS/benchmarks/cnn/darts/darts_wrapper_discrete.py", line 157, in train_batch
logits = self.model(input, discrete=True)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
result = self.forward(*input, **kwargs)
File "/home/baijin/Code/l-darts/cnn/model_search.py", line 104, in forward
s0 = s1 = self.stem(input)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
result = self.forward(*input, **kwargs)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/container.py", line 67, in forward
input = module(input)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
result = self.forward(*input, **kwargs)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 282, in forward
self.padding, self.dilation, self.groups)
File "/home/baijin/Lib/anaconda3/envs/torch/lib/python3.6/site-packages/torch/nn/functional.py", line 90, in conv2d
return f(input, weight, bias)
RuntimeError: CUDNN_STATUS_EXECUTION_FAILED
Collecting environment information...
PyTorch version: 0.3.1.post2
Is debug build: No
CUDA used to build PyTorch: 9.0.176
OS: Ubuntu 18.04.2 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.1.85
GPU models and configuration:
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti
Nvidia driver version: 418.56
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.16.3
[conda] blas 1.0 mkl https://mirrors.ustc.edu.cn/anaconda/pkgs/free
[conda] cuda90 1.0 h6433d27_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
[conda] mkl 2018.0.3 1 https://mirrors.ustc.edu.cn/anaconda/pkgs/main
[conda] pytorch 0.3.1 py36_cuda9.0.176_cudnn7.0.5_2 [cuda90] https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
[conda] torchvision 0.2.0 py36_0 https://mirrors.ustc.edu.cn/anaconda/pkgs/main
I tried python train.py --auxiliary --cutout
in liamcli/darts/cnn and I encounted the same RuntimeError: CUDNN_STATUS_EXECUTION_FAILED
error.
Could you please help me to check what's the problem with the environments and the DARTS? Thank you very much.
Hi there, thanks for providing your codes! I am trying to use your repo for my thesis, I was wondering if you could please give some clue, what should I do if I wanna search architecture for my own dataset and in a classification task? I really appreciate your help.
Best
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.