Giter Club home page Giter Club logo

Comments (9)

Advocate99 avatar Advocate99 commented on August 27, 2024

Hi, maybe it is due to the version of the package.
Is your lmdb version 0.96?

from diffgesture.

Hao-tianWang avatar Hao-tianWang commented on August 27, 2024

I find that maybe it is due to the version of python, I degrad the version of python to 3.7.12 and the problem is solved and the dataset can be loaded successfully, but another problem occured, when i load the dataloader:

train_dataset = SpeechMotionDataset(args.train_data_path[0],
                                        n_poses=args.n_poses,
                                        subdivision_stride=args.subdivision_stride,
                                        pose_resampling_fps=args.motion_resampling_framerate,
                                        mean_dir_vec=mean_dir_vec,
                                        mean_pose=args.mean_pose,
                                        remove_word_timing=(args.input_context == 'text')
                                        )
    train_loader = DataLoader(dataset=train_dataset, batch_size=args.batch_size,
                              shuffle=True, drop_last=True, num_workers=args.loader_workers, pin_memory=True,
                              collate_fn=collate_fn
                              )
ValueError: num_samples should be a positive integer value, but got num_samples=0

I think this seems no longer a version problem. Can you help me fix it? thx

from diffgesture.

Hao-tianWang avatar Hao-tianWang commented on August 27, 2024

I find that maybe it is due to the version of python, I degrad the version of python to 3.7.12 and the problem is solved and the dataset can be loaded successfully, but another problem occured, when i load the dataloader:

train_dataset = SpeechMotionDataset(args.train_data_path[0],
                                        n_poses=args.n_poses,
                                        subdivision_stride=args.subdivision_stride,
                                        pose_resampling_fps=args.motion_resampling_framerate,
                                        mean_dir_vec=mean_dir_vec,
                                        mean_pose=args.mean_pose,
                                        remove_word_timing=(args.input_context == 'text')
                                        )
    train_loader = DataLoader(dataset=train_dataset, batch_size=args.batch_size,
                              shuffle=True, drop_last=True, num_workers=args.loader_workers, pin_memory=True,
                              collate_fn=collate_fn
                              )
ValueError: num_samples should be a positive integer value, but got num_samples=0

I think this seems no longer a version problem. Can you help me fix it? thx

And I find that when turn the argument "shuffle" to false, the problem is solved, but it is right to set "shuffle" to false?

from diffgesture.

Advocate99 avatar Advocate99 commented on August 27, 2024

Hi, whether using the shuffle does not change the sample number.
It is due to the wrong path I guess. Can you check your path to the data? It is required to set the data as the readme or check it correct yourself.

from diffgesture.

Hao-tianWang avatar Hao-tianWang commented on August 27, 2024

Hi, whether using the shuffle does not change the sample number. It is due to the wrong path I guess. Can you check your path to the data? It is required to set the data as the readme or check it correct yourself.

Hi, I have checked the datapath and it is totally right, as shown in following log:

2024-03-11 18:32:48,213: Reading data 'data/ted_expressive_dataset/train'...
2024-03-11 18:32:48,214: Found the cache data/ted_expressive_dataset/train_cache

but if I set shuffle=True, this problem will still occure, so I a bit confused.

from diffgesture.

Advocate99 avatar Advocate99 commented on August 27, 2024

Hi, if the structure inside that directory is correct, maybe it is because the data file is damaged. Can you try the readme again?
And, you shall manually check the num of samples when you have the shuffle=False because it does not change the file number. Or the training cannot be normal.

from diffgesture.

Hao-tianWang avatar Hao-tianWang commented on August 27, 2024

Thanks a lot! I will re-download the data file and try again later.

from diffgesture.

Hao-tianWang avatar Hao-tianWang commented on August 27, 2024

Hi, sorry to bother again. It seems like my original data file has been broken, I re-download the ted-expressive dataset and I run into this warning when I start to create train data cache, as follows:

RuntimeWarning: invalid value encountered in true_divide 
v1_u = v1 / np.linalg.norm(v1)

I wonder if it is normal and whether it will cost harm to the training process? Thank you.

from diffgesture.

Advocate99 avatar Advocate99 commented on August 27, 2024

Hi, I have no idea of this, and I am not sure how the data break. Maybe finish the training and check the performance first?

from diffgesture.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.