Code Monkey home page Code Monkey logo

Comments (17)

 avatar commented on June 1, 2024 1

Hello !

Thank you so much ! I think I found the solution for that.
In ' settings.py ' I changed the files_per_pass value from 4 to 2 and it starts working normally.
maybe because I'm using the small DSD100 dataset '120MB' for test (even I tested before with full DSD100 dataset)?
Do you have any explanation for that?

# Process constants
training_constants = {
    'epochs': 2 if debug else 100,
    'batch_size': 16,
    'files_per_pass': 2
}

Thank you so much

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Hi!

It seems that there are no values produced for the loss of the Masker, during training.

Let me check it on Tuesday and I will post here again.

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Also, could you please tell me which version of PyTorch are you using?

from mad-twinnet.

 avatar commented on June 1, 2024

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Version of PyTorch? Not version of Python.

from mad-twinnet.

 avatar commented on June 1, 2024

Oh ! sorry my bad .. the version 0.3.0.post4

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Hi

I could not reproduce your error. Seeing from your error message that you posted, the variable epoch_l_m (the epoch loss for the masker) is empty, that is why your get "empty Tensor" error.

I would suggest to see if your python path is setup properly (according to the guidelines given in the README file).

Please check your python path for the project and make sure that you are using the export PYTHONPATH... part, given in the README file.

from mad-twinnet.

 avatar commented on June 1, 2024

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

I would suggest you to do debug. I cannot figure out why you have this problem.

If you could get a breakpoint at the line where the values are appended at the epoch_l_m list, and see what values are appended.

from mad-twinnet.

 avatar commented on June 1, 2024

Thank you so much for
I think that the problem can be Dataset set-up
My Dataset DSD100 folder looks like default structure
my problem is that I don't know which files should I rename them to numbers and I don't understand this line "each file name should have an identifier whether the file is about the mixture, the voice, the bass, and other." it means like 001(the bass).wav ?
so could you please help me.

Best regards,

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Hi,

Sorry for the not clear enough description on how the naming conventions of the dataset are.

  • The mixture files should be named as "mixture.wav"
  • The voice files should be names as "vocals.wav"
  • The bass files as "bass.wav"
  • The drums as "drums.wav"
  • The other as "other.wav".

Do the above help a bit?

Cheers!

from mad-twinnet.

 avatar commented on June 1, 2024

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

I have not understood what exactly you are trying to do. The line that you removed was calculating the mean loss of the masker for one epoch.

I would guess that now you do not get any indication for the losses in one epoch?

from mad-twinnet.

 avatar commented on June 1, 2024

from mad-twinnet.

 avatar commented on June 1, 2024

Hi !

Is there any update about this issue? I'm having the same problem even I'm trying my best to resolve it.
by the way I'm using the CPU version of Torch, do you think it can be the reason?

-- Starting training process. Debug mode: False
-- Setting up modules... done.
-- Setting up optimizes and losses... done.
-- Training starts

Traceback (most recent call last):
  File "scripts/training.py", line 199, in <module>
    main()
  File "scripts/training.py", line 195, in main
    training_process()
  File "scripts/training.py", line 176, in training_process
    l_m=torch.mean(torch.FloatTensor(epoch_l_m)),
RuntimeError: invalid argument 1: empty Tensor at /pytorch/torch/lib/TH/generic/THTensorMath.c:3311

Thank you in advance.

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Hey,

I tried to reproduce your error but I cannot.

If you want, we can try together and solve your problem. What I would do, is to put a break point at line 166 of training.py

epoch_l_m.append(l_m.data[0])

and see what the value of l_m.data.

Could you please tell me the above?

Cheers and thank you for trying to solve this with me :)

from mad-twinnet.

dr-costas avatar dr-costas commented on June 1, 2024

Hi!

I'm very glad that finally worked for you.

The only explanation that I can think of now is due to some rounding in divisions. That is, with the number of files that you had, the division with the files_per_pass gave some invalid numbers and this resulted in not getting files, thus not giving output for the l_m, and this resulting to the empty list of epoch_l_m.

The above is just a speculation though. I would have to dig a bit more to this particular report. Since I'm planning to update the code for Python 3.X and PyTorch 0.4.X, I think that I will do it but for the new version :)

In any case, thank you so much for reporting this and staying here with me to fix it.

Enjoy using the code!!!

from mad-twinnet.

Related Issues (15)

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.