Comments (6)
Ah.. this is because of torchgeometry
do not update their kernel code according to the updated pytorch kernel code. I'll add some hacks that I tried in README. Basically, you need to change L301~L304 of anaconda3/lib/python3.8/site-packages/torchgeometry/core/conversion.py
to below.
mask_c0 = mask_d2.float() * mask_d0_d1.float()
mask_c1 = mask_d2.float() * (1 - mask_d0_d1.float())
mask_c2 = (1 - mask_d2.float()) * mask_d0_nd1.float()
mask_c3 = (1 - mask_d2.float()) * (1 - mask_d0_nd1.float())
It just changes binary masks to floating masks.
from i2l-meshnet_release.
@pablovela5620 This issue occurs due to torch version 1.2 or higher. On downgrading to torch==1.1, this issue gets resolved for me.
from i2l-meshnet_release.
Didn't get to try downgrading pytorch, but @mks0601 suggestion worked for me! Though probably not ideal, thank you both for the help!
from i2l-meshnet_release.
@pablovela5620 This issue occurs due to torch version 1.2 or higher. On downgrading to torch==1.1, this issue gets resolved for me.
Hello, I make torch==1.1, but there is a problem with "from contextlib import nullcontext" in the model.py file, "ImportError: cannot import name'nullcontext'", do you know how to solve it,thank you.
from i2l-meshnet_release.
@booker-max I am not sure about this error. But trying the below code by mka should work.
Ah.. this is because of
torchgeometry
do not update their kernel code according to the updated pytorch kernel code. I'll add some hacks that I tried in README. Basically, you need to change L301~L304 ofanaconda3/lib/python3.8/site-packages/torchgeometry/core/conversion.py
to below.mask_c0 = mask_d2.float() * mask_d0_d1.float() mask_c1 = mask_d2.float() * (1 - mask_d0_d1.float()) mask_c2 = (1 - mask_d2.float()) * mask_d0_nd1.float() mask_c3 = (1 - mask_d2.float()) * (1 - mask_d0_nd1.float())
It just changes binary masks to floating masks.
from i2l-meshnet_release.
https://stackoverflow.com/questions/45187286/how-do-i-write-a-null-no-op-contextmanager-in-python
The nullcontext can be used in Python 3.7
from i2l-meshnet_release.
Related Issues (20)
- I have googled it, but it has not been solved yet. I have the following problem, please help me
- The provided freihand pose param is different from freihand origin dataset HOT 3
- help for size mismatch problem HOT 1
- Training Settings for FreiHAND HOT 6
- Question about downsampled mesh performance HOT 1
- MSCOCO Background HOT 3
- issues about mano param in freihand dataset HOT 1
- pytorch matrix size incorrect HOT 1
- bbox_root_freihand_output.json HOT 2
- training the rootnet with Freihand Dataset. HOT 3
- the focal of rootnet training HOT 1
- Change to MANO in demo.py HOT 1
- The thickness of the generated mesh HOT 2
- when running the command: python demo.py --gpu 3 --stage param --test_epoch 8 I get the following error, can someone help me please to solve it HOT 1
- clarification of OLD issue - Smpl body to image projection
- Question about joint numbers HOT 3
- KeyError: 'mesh_coord_cam' HOT 4
- Issue about h36m_smpl dataset HOT 11
- Issue about h36m dataset HOT 4
- freihand_train_data.json format HOT 2
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 i2l-meshnet_release.