Comments (7)
Not sure if it's possible - might need to find equivalents for the in place abn functions that currently rely on CUDA...I'm interested in finding out the answer to this question too.
from ternausnetv2.
Hey did you get any solution to this problem?
from ternausnetv2.
I run it on GPU :-)
from ternausnetv2.
I have a working CPU version - you need to change all the ifs in module/src/inplace_abn.cpp that seem to only enable the cuda versions. The CPU versions are already implemented but not used - you just need to activate them.
from ternausnetv2.
@billcai what do you mean by the ifs and is it just in the module/src/inplace_abn.cpp file that this is the case?
from ternausnetv2.
Removed this if else statement and just leave the cpu version for all the functions in inplace_abn.cpp
For example, from:
if (x.is_cuda()) {
return mean_var_cuda(x);
} else {
return mean_var_cpu(x);
}
To:
return mean_var_cpu(x):
from ternausnetv2.
Thanks a lot @billcai . Your input helped me after days of struggle on the same. One more important thing I had to do was comment out or delete the "inplace_abn_cuda.cu" in the functions .py script in the modules. Ultimately, then the TernausNetV2 was imported.
from ternausnetv2.
Related Issues (20)
- How to train on cityscapes? HOT 1
- How exactly deepglobe_buildings.pt weights could be loaded? HOT 1
- Further train the model HOT 1
- Have anyone trained on Cityscapes?
- Label preprocessing?
- Additional tricks / post processing steps?
- RuntimeError: Given groups=1, weight of size [64, 11, 3, 3], expected input[1, 6 72, 672, 11] to have 11 channels, but got 672 channels instead
- ImportError: /tmp/torch_extensions/inplace_abn/inplace_abn.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationESs HOT 4
- my own dataset
- Transfer Learning
- Is there any plan release the training scripts?
- RuntimeError: Error building extension 'inplace_abn' HOT 3
- GeoTiff Loading/Image Preprocessing
- the binary mask HOT 4
- TernausNetV2 import error. HOT 2
- problem with minmax function HOT 1
- Import error: from models.ternausnet2 import TernausNetV2 HOT 3
- contour creation HOT 8
- runtime error: CUDNN_STATUS_MAPPING_ERROR HOT 1
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 ternausnetv2.