Coder Social home page Coder Social logo

Comments (7)

egrinstein avatar egrinstein commented on July 18, 2024 1

Hi, thank you for your interest.
I have only tested the model with a maximum number of 2 sources, the 3-source samples were discarded.

I think the second error will be fixed by changing the parameters in params.json as described in the Configuration section on the Readme.md file.

The loss of 60 seems large, I think this might also be related to the parameter mismatch mentioned above.

I hope this helps.

from neural_srp.

Underman30 avatar Underman30 commented on July 18, 2024

Hi, I have solved the third problem which was really caused by my value change in step 1, but there are actually samples in TAU which contains 3 active events, did you use all the samples to be preprocessed?
The second problem still confused me.
And there are some other questions:

  1. When I use your checkpoints of Cross3d to viszualize the LOCATA, the global loss is more than 60, is this normal?
  2. When I tried to visualize the tau, some error occured like:
File "D:\PyCharm\PycharmProjects\neural_srp\metrics.py", line 117, in partial_compute_metric
    dot_prods = torch.matmul(output.detach(), target_doas.transpose(-1, -2))
RuntimeError: The size of tensor a (62) must match the size of tensor b (50) at non-singleton dimension 0

how can I solve it, thank you ~

from neural_srp.

Underman30 avatar Underman30 commented on July 18, 2024

Thank you for your help.
So how to discard the 3-source samples? Did you use the whole mic_dev to train and test?

The second error has been fixed by changing the parameters. It was an oversight. But when I run the visualiza_tau.py again, it reports that I have used both cuda and cpu, how can I check and change it:

 File "D:\PyCharm\PycharmProjects\neural_srp\metrics.py", line 117, in partial_compute_metric
    dot_prods = torch.matmul(output.detach(), target_doas.transpose(-1, -2))
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat2 in method wrapper_bmm)

Thank you in advance.

from neural_srp.

Underman30 avatar Underman30 commented on July 18, 2024
    def _get_filenames_list_and_feat_label_sizes(self):
        for filename in os.listdir(self._feat_dir):
            if filename == ".DS_Store":
                # Skip mac specific file
                continue
            if int(filename[4]) in self._splits: # check which split the file belongs to
            self._filenames_list.append(filename)

I find that if I use this line if int(filename[4]) in self._splits: # check which split the file belongs to , self._filenames_list become empty, should I remove it ?

By the way, I have changed the device listed below from "cpu" to "cuda", but it still reports that I used 2 devices:

hnet_model.load_state_dict(
        torch.load("hnet_model.h5", map_location=torch.device("cpu"))
    )
checkpoint_path = params["model_checkpoint_path"]
    state_dict = torch.load(checkpoint_path, map_location=torch.device("cpu"))

from neural_srp.

egrinstein avatar egrinstein commented on July 18, 2024

Hi,
if I recall correctly you are right: some splits of mic_dev were used for training and another one was used for testing.

from neural_srp.

egrinstein avatar egrinstein commented on July 18, 2024

In these lines hnet_model.load_state_dict( torch.load("hnet_model.h5", map_location=torch.device("cpu")) )

checkpoint_path = params["model_checkpoint_path"] state_dict = torch.load(checkpoint_path, map_location=torch.device("cpu")),

the models are loaded into the CPU but are later transferred into GPU if you are using it.

from neural_srp.

Underman30 avatar Underman30 commented on July 18, 2024

Hi, Thanks for your help. I've tested the multisource experiment successfully, but the results seems not really good, the location errors of neural-srp-multi and doanet are all about 60, the test dataset I use is mic_dev/test, what's the potential problem of it and how can I improve it? The parameters are set as you mention in Readme.md .

from neural_srp.

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.