Comments (13)
- Modify this line to
se_loss = args.se_loss, norm_layer = torch.nn.BatchNorm2d,
- Modify this line to
loss = self.criterion(*outputs, target)
- Remove this line
- Modify this line to
nn.BatchNorm1d(ncodes),
- Reinstall FastFCN
pip uninstall fast_fcn
PATH=.:$PATH
python setup.py install
from fastfcn.
model = get_segmentation_model()
define norm_layer to be torch.nn.BatchNorm2d solve my problem.
from fastfcn.
@alphaccw i have change the norm_layer ,but it also occur the problem. like below:
AttributeError: 'NoneType' object has no attribute 'run_slave'
Could you help me ?
thank you very much
from fastfcn.
@10183308
by this changing, i can successfully run psp and deeplab models, enc seems still have some problem, i didnot go into it yet.
BTW, i remember i need to set as 'norm_layer=torch.nn.BatchNorm2d', the full name...i canot accesss to the machine now, so i cant check at the moment
from fastfcn.
Still doesn't work
from fastfcn.
Please give the error message in detail.
from fastfcn.
first, I have this problem, #10 when train
I modified four places you mentioned, and then run in docker,use single gpu
CUDA_VISIBLE_DEVICES=0 python train.py --dataset pcontext \
--model encnet --jpu --aux --se-loss \
--backbone resnet50 --checkname encnet_res50_pcontext \
--batch-size 1
get
then I add --workers 1
still error
from fastfcn.
5. Remove DataParallelModel
from this line.
6. Remove DataParallelCriterion
from this line.
7. Undo 2
: Modify this line to loss = self.criterion(outputs, target)
from fastfcn.
still the same error.
my environment,python3.7, pytorch1.0.1, cuda 9.0, cudnn 7.4.2, GTX1080,using docker
is there anything wrong with my environment?
I can run test, test_fps and predict scripts successfully.
from fastfcn.
Have you reinstalled the package after modifying the code?
from fastfcn.
No. which package need to be reinstalled?
from fastfcn.
pip uninstall fast_fcn
PATH=.:$PATH
python setup.py install
If you want to modify the code without reinstalling every time, then
pip uninstall fast_fcn
PATH=.:$PATH
python setup.py develop
Besides, I think step 5-7 is unnecessary, which can be skipped.
from fastfcn.
Step 5-7 is unnecessary.
Thank you very much.
from fastfcn.
Related Issues (20)
- Pre-training weights HOT 1
- What do I need change in code to run CPU testing without using CUDA
- What do I need change in code to run "test" script only on CPU without using CUDA?
- I can't successfully run train script on my dataset. HOT 1
- "IndexError: list index out of range" durinng "test" and "test single image" scipt HOT 3
- Need your suggestions HOT 5
- FastFCN has been supported by MMSegmentation. HOT 9
- In order to run this on a different dataset say CamVid what changes need to be made HOT 2
- RuntimeError: Failed downloading url https://hangzh.s3.amazonaws.com/encoding/models/resnet50-ebb6acbb.zip HOT 3
- RuntimeError: => no checkpoint found at 'encnet_jpu_res50_pcontext.pth.tar' HOT 1
- Why use seperable convolutions with dilation factor? HOT 1
- Run Time error when trying to train AdeK20 dataset HOT 1
- What batch size and learning rate would you recommend training for a 24gb GPU?
- Runtime error wile downloading pretrained model
- About the PContext precision results HOT 1
- 训练时出现 raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)". HOT 5
- 不能下载 HOT 2
- about syncbn HOT 3
- latest版本训练的时候卡住 HOT 1
- How could I set "resume" while running test_single_image? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastfcn.