Comments (6)
Please check this issue
pmh47/dirt#16
Paul Henderson (the dirt developer) give me this solution:
I reproduced this on a similar configuration; the issue is indeed with using too much memory. Octopus doesn't use allow_growth, so tensorflow grabs all the GPU memory, which leaves DIRT unable to perform its own small allocations. You can patch octopus with the following:
diff --git a/infer_single.py b/infer_single.py
index bfcb292..3a02d8f 100644
--- a/infer_single.py
+++ b/infer_single.py
@@ -6,6 +6,8 @@ from glob import glob
from lib.io import openpose_from_file, read_segmentation, write_mesh
from model.octopus import Octopus
+import tensorflow as tf
+
def main(weights, name, segm_dir, pose_dir, out_dir, opt_pose_steps, opt_shape_steps):
segm_files = sorted(glob(os.path.join(segm_dir, '*.png')))
@@ -14,6 +16,8 @@ def main(weights, name, segm_dir, pose_dir, out_dir, opt_pose_steps, opt_shape_s
if len(segm_files) != len(pose_files) or len(segm_files) == len(pose_files) == 0:
exit('Inconsistent input.')
+ tf.keras.backend.set_session(tf.Session(config=tf.ConfigProto(gpu_options=tf.GPUOptions(allow_growth=True))))
+
model = Octopus(num=len(segm_files))
model.load(weights)
And all works fine at me. Please add this patch to the octopus code for works with GPU cards with more than 10GB memory.
from octopus.
DIRT is not part of this project. Please open a ticket at the DIRT project.
If this option improves this project, please submit a pull request.
from octopus.
The fixes should be made in the Octopus code:
file infer_single.py:
import tensorflow as tf
and add inside main function :
tf.keras.backend.set_session(tf.Session(config=tf.ConfigProto(gpu_options=tf.GPUOptions(allow_growth=True))))
Please read his anwer
I reproduced this on a similar configuration; the issue is indeed with using too much memory. Octopus doesn't use allow_growth, so tensorflow grabs all the GPU memory, which leaves DIRT unable to perform its own small allocations. You can patch octopus with the following:
from octopus.
Please feel free to submit a pull request.
from octopus.
Now all works fine. Thanks!
from octopus.
Now all works fine. Thanks!
hi~ Could you share your pkg version? Are you using tf1.13.1?
from octopus.
Related Issues (20)
- using the new SMPL-X model for accuracy HOT 1
- SMPL offsets estimation HOT 1
- It seems the requirements are too strict HOT 4
- Camera Focus Doesn't Match HOT 1
- Save weight does not match network HOT 4
- LifeScans dataset HOT 1
- IndexError: list index out of range HOT 4
- Camera parameters HOT 1
- height HOT 1
- Output Inconsistency when using the batch version HOT 2
- Binary-segmentation model HOT 1
- About train details
- Can you give me the version of tensorflow and keras to run your code HOT 2
- Training code without the dataset HOT 1
- set up this code (octopus) in google colab HOT 1
- What is the min gpu memory required to run run_demo.sh HOT 1
- scale HOT 1
- About the acquisition of assets HOT 1
- Dirt installation: tensorflow version is modified automatically HOT 3
- TypeError: __init__() takes 2 positional arguments but 4 were given
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 octopus.