Giter Site home page Giter Site logo

Comments (9)

SheldonTsui avatar SheldonTsui commented on July 19, 2024

@avis-ma Hello!
Under the binary mask mode, you can add an "assert" to ensure the values of gt masks are in {0,1} and the predicted masks are in the range [0,1]. This trick is very useful for your debug.

from minus-plus-network.

avis-ma avatar avis-ma commented on July 19, 2024

Thank you very much. I will retry this trick. 👍

from minus-plus-network.

813665269 avatar 813665269 commented on July 19, 2024

HI,
When I use the dataset you provide, the training of the model will terminate at the time of torch.utils.data.dataloader.You added the sys.exit (- 1) command to the Musicmixdata function.When I deleted this command,I got this error:Sizes of tensors must match except in dimension 3.
I know this problem caused by the different dimension,but I don't know how to solve this problem.

from minus-plus-network.

SheldonTsui avatar SheldonTsui commented on July 19, 2024

@813665269 Please check whether you can load the frames and audio correctly. Debug in the "try" code part, and you will find the problems.

from minus-plus-network.

813665269 avatar 813665269 commented on July 19, 2024

hi,
I print the error data and try to delect all of them,but they are too many.They can run in the Sound-of-Pixels-master,but can not run in your project.I want to know how to Process the datasets to suit this project.
Show the error:
VU8W}G$IUYP9D{Z1M)B5QS8

from minus-plus-network.

SheldonTsui avatar SheldonTsui commented on July 19, 2024

@813665269 Hello, don't delete the "maybe" error data. Please GO INTO the code block to debug. Maybe there are some little differences in the data format. My data loader is largely based on "Sound-of-Pixels-master", but slightly different.
For example, you can manually load training data here:


Add visualization code "for data in dataset_train: print(data.keys())", and you can go into such code block and find the exact bug.

from minus-plus-network.

813665269 avatar 813665269 commented on July 19, 2024

Thanks for your answer,
I print the datasets and get the construction of the wrong data and correct data.In your project ,if the function cant read the data,it will return a tensor with all zeros.
QQ图片20200929144840

from minus-plus-network.

813665269 avatar 813665269 commented on July 19, 2024

Hi,
I reshape the error data's tensor from [1,751,255] to [1,751,256] and then drop the command 'sys.exit(-2)' in MusicmixData .Now,this project can run.But I think the wrong tensor with all zeros must effect the model quality.
Can you give me some advice to treat it?
Thanks a lot.

from minus-plus-network.

SheldonTsui avatar SheldonTsui commented on July 19, 2024

@813665269 You should check why the error data happens. In other words, the normal shape of that tensor should be [1, 751, 256]. Why will such wrong tensors present in your case? To ensure all the training data is well-prepared is very important.

from minus-plus-network.

Related Issues (2)

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.