Comments (11)
Ninja is required to load C++ extensions
sudo apt-get install ninja-build
This solved my problem.
from self-correction-human-parsing.
have you solved this problem? I met same error too.
from self-correction-human-parsing.
you need to install ninja before running the script
from self-correction-human-parsing.
ninja is already installed
from self-correction-human-parsing.
I also have the same problem. I have installed pytorch1.10, ninja 1.8.2, cuda 11.3. But still cannot run the program.
Traceback (most recent call last):
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1717, in _run_ninja_build
subprocess.run(
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "Self-Correction-Human-Parsing/simple_extractor.py", line 24, in <module>
import networks
File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/networks/__init__.py", line 3, in <module>
from networks.AugmentCE2P import resnet101
File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/networks/AugmentCE2P.py", line 21, in <module>
from modules import InPlaceABNSync
File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/__init__.py", line 1, in <module>
from .bn import ABN, InPlaceABN, InPlaceABNSync
File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/bn.py", line 10, in <module>
from .functions import *
File "/home/juneshi/Desktop/Ecommerce_consumer_behavior/bmi_prediction/Self-Correction-Human-Parsing/modules/functions.py", line 10, in <module>
_backend = load(name="inplace_abn",
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1124, in load
return _jit_compile(
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1337, in _jit_compile
_write_ninja_file_and_build_library(
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1449, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/home/juneshi/anaconda3/envs/pytorch/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1733, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'inplace_abn': ninja: warning: bad deps log signature or version; starting over
from self-correction-human-parsing.
What is the ninja version? Please run the following command and check.
ninja --version
from self-correction-human-parsing.
from self-correction-human-parsing.
我也遇到了相似问题,ninja: build stopped: subcommand failed.请问怎么解决呀
from self-correction-human-parsing.
mapillary/inplace_abn#104 Pls check this thread.
My ninja version is 1.10.2. aeoleader @.>于2022年1月24日 周一上午10:46写道:
…
What is the ninja version? Please run the following command and check. ninja --version — Reply to this email directly, view it on GitHub <#56 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKTNYE2MO66PETLUSO5IN2TUXS4QLANCNFSM42XVWWUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>
from self-correction-human-parsing.
我也遇到了相似问题,ninja: build stopped: subcommand failed.请问怎么解决呀
请问解决了吗,我也遇到这个问题了
from self-correction-human-parsing.
you can also use conda to isntall ninja-build. Here is the command
conda install ninja-build -c refractor
from self-correction-human-parsing.
Related Issues (20)
- FileNotFoundError: [Errno 2] No such file or directory: '../../demo/annotations/demo_val.json'
- Training errors on LIP HOT 4
- How can i run it on videos ? HOT 1
- LIP dataset not available HOT 3
- How to visualize edge prediction? HOT 1
- Where is the pre-trained model for Multiple Human Parsing?
- Training Time is huge
- CIHP dataset Training
- Testing on CPU HOT 12
- MulitHuman Parsing Resutls
- How to trained on custom dataset? HOT 2
- LIP dataset - crashed link HOT 1
- CUDA problem on training HOT 1
- generating human-parsing HOT 1
- Hi! I want to convert model to onnx but i have some error with InPlaceABNSync. can you give me some solutions. My error "RuntimeError: ONNX export failed: Couldn't export Python operator InPlaceABNSyn"
- Pascal-Person-Part求助
- Training with others backbone
- Excuse me, why is it stuck here all the time?I need help.
- Real-time test problem
- Cannot reproduce the results from the paper - Problem with InPlaceABNSync?
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 self-correction-human-parsing.