Comments (2)
Hi,thanks for your great work , I‘ve encountered a problem when I use my own image for testing in the proceeding of extract_keypoints. The error sources from the function extract_keypoints in part of
"np.save(file_path, [kc, he])"
, it reminds that"NumPy requires that all elements of a multi-dimensional array have the same shape."
To find out the dim problem, I use the provided image latentnpy
file, the dim for thehe
are "yaw(1, 66)、pitch(1, 66)、roll(1, 66)、t(1, 3)、exp(1, 45)" When in testing , I also print the dim, It's exactly the same dim, but can't save the npy file, it seems only can use pkl for saving.Python version 3.9.19 Numpy version 1.23.5 in
/home/miniconda3/envs/EAT/lib/python3.9/site-packages/numpy/lib/npyio.py
def save(file, arr, allow_pickle=True, fix_imports=True): if hasattr(file, 'write'): file_ctx = contextlib.nullcontext(file) else: file = os_fspath(file) if not file.endswith('.npy'): file = file + '.npy' file_ctx = open(file, "wb") with file_ctx as fid: arr = np.asanyarray(arr) # call error format.write_array(fid, arr, allow_pickle=allow_pickle, pickle_kwargs=dict(fix_imports=fix_imports))
in /home/miniconda3/envs/EAT/lib/python3.9/site-packages/numpy/lib/npyio.py
add dtype="object"
in
from eat_code.
Another problem encountered in modules/transformer
"RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use ".reshape(...) instead."
Fixed by change the .view(...) to .contiguous().view(...)" from https://stackoverflow.com/questions/66750391/runtimeerror-view-size-is-not-compatible-with-input-tensors-size-and-stride-a . Modify as
return yaw, pitch, roll, yaw_mat.contiguous().view(yaw_mat.shape[0], 9), pitch_mat.contiguous().view(pitch_mat.shape[0], 9), roll_mat.contiguous().view(roll_mat.shape[0], 9), rot_mat.contiguous().view(rot_mat.shape[0], 9)
from eat_code.
Related Issues (20)
- RuntimeError: The size of tensor a (165) must match the size of tensor b (66) at non-singleton dimension 1 on my training dataset HOT 1
- AssertionError: Caught AssertionError in DataLoader worker process 0. HOT 2
- 关于训练收敛的问题 HOT 3
- How to edit with text and interpolate states as described in the paper? HOT 2
- Would it be complicated to add eyeblinking reference videos? HOT 1
- No discriminator in the state-dict. Dicriminator will be randomly initialized load optimizer_a2kp failed, train it from scratch HOT 5
- Generated Video Background Is Not Static HOT 3
- Any way support for Chinese audio? HOT 3
- 3D Keypoint Enhancement Training HOT 2
- Details about CLIP fine-tuning and zero-shot text-guided editing HOT 11
- FileNotFoundError: Package has no location <module 'imageio_ffmpeg.binaries' (namespace)> HOT 2
- Inquiry Source Data Preparation HOT 2
- Error in saving .npy file HOT 2
- How to generate files for custom audio? HOT 4
- 关于预训练使用的权重 HOT 3
- mead数据压缩问题 HOT 1
- Inquiry Regarding Preprocessing VOX2 and MEAD Dataset for Training HOT 8
- Fail to get output from demo.py HOT 2
- Can anyone share TED-Talk dataset?
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 eat_code.