Coder Social home page Coder Social logo

guyuchao / inas Goto Github PK

View Code? Open in Web Editor NEW
84.0 2.0 10.0 715 KB

Open Source Neural Architecture Search Toolbox for Device-aware Image Dense Prediction & Official implementation of ICCV2021 "iNAS: Integral NAS for Device-Aware Salient Object Detection"

License: Other

Python 99.80% Shell 0.20%
salient-object-detection semantic-segmentation neural-architecture-search low-latency

inas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

inas's Issues

teacher_pred not detach

Hello big brother Gu,it's been a while. I have read some old paper these days. And i find that in the 《Universally slimmable Networks 》----(seems to be the first paper present the sandwich rule and inplace distillation,I thought it was bignas,but it wasn't).It detach the teacher_pred for further distillation since it seems to be able to save a lot of memory in GPU. And you emphasized not detach in oneshot_model.py. I wonder why. And,Thank you for your work, I have learned a lot.

How to generate the pretrain supernet checkpoints

Hello again! I have noticed that you provided your pretrained checkpoints checkpoint-28b11d7f.pth. If i modify the search space,how can i get my checkpoints, and how can i pretrain it? Is the pretrain process including pretraining the supernet backbone on imagenet? Thank you!

an error occur

torch.nn.modules.module.ModuleAttributeError: 'iNASSupernet' object has no attribute 'module'.
This error when one epoch is trained and try to valid the supernet。I wonder if this is a bug? i use pytorch 1.7.1,seems to qualify.I am really looking forward for your help. And great work it is.

!python iNAS/train.py -opt options/train/SOD/train_supernet_sod_4gpu_b10_e100_noaug.yml

你好,
图片

Traceback (most recent call last):
File "iNAS/train.py", line 246, in
train_pipeline(root_path)
File "iNAS/train.py", line 145, in train_pipeline
model = build_model(opt)
File "/output/iNAS/iNAS/models/init.py", line 27, in build_model
model = MODEL_REGISTRY.get(opt['model_type'])(opt)
File "/output/iNAS/iNAS/models/oneshot_model.py", line 40, in init
self.load_network(self.supernet, load_path, self.opt['path'].get('strict_load', True), param_key)
File "/output/iNAS/iNAS/models/base_model.py", line 245, in load_network
load_net = load_net[param_key]
KeyError: 'state_dict'
首先这两个文件权重一样吗, 其次 为什么会报这个错呢 按照你的log 文件来弄得

some bug about the searching space

I have tried different search space, and i find that sometimes i can't search the kernel in backbone stage1 and stage2,(torch.nn.modules.module.ModuleAttributeError: 'SMSU' object has no attribute 'ks_5' )and the deeper stage kernel in backbone is searchable. And sometime i can seach the kernel in stage 1,2, I 'm running my first version and it support the kernel seach in backbone stage 1 and 2. I don't know if i express myself clearly,so i say it in Chinese again.
就是我发现搜索空间的cfg里backbone stage1,2有的时候我可以设置kernel 搜索[3,5,7,9],有的时候我只能设置[3]它才不会报错, (torch.nn.modules.module.ModuleAttributeError: 'SMSU' object has no attribute 'ks_5' ),我的第一版搜索只搜索了骨干,之后每个stage的kernel我都可以自由的搜索,第二版我加入了transport的搜索空间,然后导致了我backbone的stage1和2的kernel不能搜了别的都没问题,请问是什么原因呢。

About BN finetune

Hello! I've transfer your great work to other task,and I find the bn_finetuning process is super time consuming ,especially during the searching process(one 3080Ti), since each candidate need to get bn finetune(i set batchsize 32,iter 100) before validation. Is this process really nessesary? Is it beacause the weight comes from the supernet so the parameter in BN is chaotic makes it needs to finetune? I 'm a rookie in NAS, thank you!

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.