linksense / lightnetplusplus Goto Github PK
View Code? Open in Web Editor NEWLightNet++: Boosted Light-weighted Networks for Real-time Semantic Segmentation
Home Page: https://ansleliu.github.io/LightNet.html
License: MIT License
LightNet++: Boosted Light-weighted Networks for Real-time Semantic Segmentation
Home Page: https://ansleliu.github.io/LightNet.html
License: MIT License
Only the deepdrive checkpoint file seems to have the usm.norm_act.weight
...
> # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #
> 1. Setting up Model...
Traceback (most recent call last):
File "deploy/cityscapes/evaluation/ss.py", line 253, in <module>
model.load_state_dict(pre_weight)
File "/home/ben/LightNetPlusPlus/env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 777, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for DataParallel:
Missing key(s) in state_dict: "module.usm.norm_act.weight", "module.usm.norm_act.bias", "module.usm.norm_act.running_mean", "module.usm.norm_act.running_var".
(env) ben@mercury:~/LightNetPlusPlus$ grep -r norm_act.weight ./*
Binary file ./checkpoint/cityscapes_mobilenetv2plus_x1.0.pkl matches
Binary file ./checkpoint/cityscapes_shufflenetv2plus_x0.5.pkl matches
Binary file ./checkpoint/cityscapes_shufflenetv2plus_x1.0.pkl matches
Binary file ./checkpoint/deepdrive_shufflenetv2plus_x1.0.pkl matches
(env) ben@mercury:~/LightNetPlusPlus$ grep -r usm.norm_act.weight ./*
Binary file ./checkpoint/deepdrive_shufflenetv2plus_x1.0.pkl matches
Hey, @ansleliu
First of all I thank you for good job.
How I can start to training this models?
Usually repository has been file 'train.py'
If I need to take this file in thr old repository of LightNet then what needs to be changed in it.
how to use the weight file for test in video?
Hi, @ansleliu , thanks for your work, can you share the training protocal, lr, batchsize, optimizer, epochs etc., for training on Cityscapes? Thanks a lot.
I tried 'MobileNetV2Plus X1.0'. But its OrderedDict keys don't match model's keys. I'm confused.
Thanks for sharing the code! it real helpful for our work.We want to quote your LightNet in our work, can you provide a reference ?
Hi, thanks for sharing the code. Is the paper "LightNet++: Boosted Light-weighted Networks for Real-time Semantic Segmentation" published? Because of I couldn't find it anywhere!
Thanks for your job!!!
I got this error when using "train_shuffle.py" to train model on citysacpes dataset
Traceback (most recent call last):
File "/home/wcgu/code/RTSeg/LightNetPlusPlus/scripts/train_shuffle.py", line 382, in <module>
train(train_args, data_path, save_path)
File "/home/wcgu/code/RTSeg/LightNetPlusPlus/scripts/train_shuffle.py", line 290, in train
val_loss = loss_fn(input=net_out, target=labels_val, K=topk, weight=None)
File "/home/wcgu/code/RTSeg/LightNetPlusPlus/scripts/loss.py", line 111, in bootstrapped_cross_entropy2d
size_average=size_average)
File "/home/wcgu/code/RTSeg/LightNetPlusPlus/scripts/loss.py", line 88, in _bootstrap_xentropy_single
log_p = log_p[target.view(n * h * w, 1).repeat(1, c) >= 0]
RuntimeError: CUDA out of memory. Tried to allocate 304.00 MiB (GPU 0; 10.72 GiB total capacity; 9.30 GiB already allocated; 226.62 MiB free; 59.54 MiB cached)
The batch_size is 1, and the training step is ok. Could you help me to solve it?
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.