Giter VIP home page Giter VIP logo

Comments (24)

STU-ECHO avatar STU-ECHO commented on May 26, 2024 1

I dont konw why I cant train this model with windows and using 3080, always raise type valueError
image
and I run this exactly in colab raise the same error when i do in the pycharm

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Hello,
To avoid taking up too much storage space, folders containing video and dialog audio were removed, and the database structure is as follows (plotted by tree command with depth 3). If you encounter more problems, feel comfortable and state them again.
Of course, you must change the path separator ( "/" for Linux) to ( "\" for Windows) anywhere needed

./IEMOCAP/
├── Session1
│   ├── dialog
│   │   └── EmoEvaluation
│   └── sentences
│       └── wav
├── Session2
│   ├── dialog
│   │   └── EmoEvaluation
│   └── sentences
│       └── wav
├── Session3
│   ├── dialog
│   │   └── EmoEvaluation
│   └── sentences
│       └── wav
├── Session4
│   ├── dialog
│   │   └── EmoEvaluation
│   └── sentences
│       └── wav
└── Session5
    ├── dialog
    │   └── EmoEvaluation
    └── sentences
        └── wav

from light-sernet.

nijaaouikhalil avatar nijaaouikhalil commented on May 26, 2024

Hello @AryaAftab,
Thanks a lot for responding.
I've changed the path separator also the pattern in the read_dataset file (line 14) to '{}.\t(.?)\t[' because it wouldn't match as is
I have also changed the label in the same file to match the name of the wavefile. . ( was throwing file not found errors )
lable = label_format.format(wavename[4], wavename[:].replace("/", "\"))
and yet I still getting errors related to the segmentation step.
Can you confrim that the current main version works ?
Thanks a lot

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

you're welcome @nijaaouikhalil,
Yes, the program works properly. The screenshot below shows the correct operation of the function (on Linux).
Why did you change the pattern? You just need to change the path separator.
Screenshot from 2022-05-25 00-30-53

from light-sernet.

nijaaouikhalil avatar nijaaouikhalil commented on May 26, 2024

Thanks a lot for the quick reply.
I changed the label to the commented one here because otherwise the file doesn't exist.
also for the pattern I accounted for the F000 that follows the name of the wave file
image
image

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Don't mention it @nijaaouikhalil,
I think there is a problem with the iemocap_before_segment function in Windows OS. This problem does not exist in Linux OS. From the error, it can be concluded that there is a problem when extracting the filenames of txt (lines 32 to 39).

from light-sernet.

nijaaouikhalil avatar nijaaouikhalil commented on May 26, 2024

can you elaborate what should be the label , the filename and wavename at that stage ( I am not sure why you remove the last 5 characters)
label = label_format.format(wavename[4], wavename[:-5])

also what should the regex match ? my understanding is that it should match the first occurrence of the wave filename (Ses01F_impro01) so we don't care about the (_F000) part .

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Assume you have a wav with Ses01F_impro01_F001.wav name:
Line 32 removes .wav from file:

wavename = filename[:-4] ---> Output: Ses01F_impro01_F001

Our label format is :

label_format = 'Session{}/dialog/EmoEvaluation/{}.txt'

In line 33, you separate session numbers and txt filename:

wavename[4] ---> Output: 1
wavename[:-5] ---> Output: Ses01F_impro01
label = label_format.format(wavename[4], wavename[:-5]) ---> Output: 'Session1/dialog/EmoEvaluation/Ses01F_impro01.txt'

In the end, you find Ses01F_impro01_F001 in your text and extract your label(in this example: neu)

from light-sernet.

nijaaouikhalil avatar nijaaouikhalil commented on May 26, 2024

Thanks a lot @AryaAftab I fixed it, turns out the issue was that I didn't delete the wave files inside the dialog folder and didn't escape them when reading the filenames.

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Think nothing of it @nijaaouikhalil,
If the repository was useful to you, thank you for your support by starring.

from light-sernet.

STU-ECHO avatar STU-ECHO commented on May 26, 2024

I dont konw why I cant train this model with windows and using 3080, always raise type valueError image and I run this exactly in colab raise the same error when i do in the pycharm

I solve the problem,and the reason is I made some mistakes with the [contents]

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Hi @STU-ECHO,
I was trying to debug your problem, but fortunately, you solved the problem yourself.
If the repository was useful to you, thank you for your support by starring.

from light-sernet.

FLFLYBS avatar FLFLYBS commented on May 26, 2024

@AryaAftab
Hello, I can't find the file when I run “python train.py -dn "IEMOCAP" -id 7 -at "all" -ln "focal" -v 1 -it "mfcc" -c "disk" -m false”. I want to ask what may be the reason
image

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

Hi @He-jia-wen
The problem created for you in the previous question was created for someone else. Did you read the previous questions and answers?

from light-sernet.

FLFLYBS avatar FLFLYBS commented on May 26, 2024

Hi @He-jia-wen The problem created for you in the previous question was created for someone else. Did you read the previous questions and answers?

Yes, I have read the previous question. It seems that this question is' - 'and' _ ' I modified the code myself, but there is a new question I want to ask
image

from light-sernet.

AryaAftab avatar AryaAftab commented on May 26, 2024

@He-jia-wen
I did not understand what exactly your question is. Your error says "you don't have the Ses01M_script02_0.txt file". Are you sure you didn't delete the label files or change their directory?

from light-sernet.

ttrikn avatar ttrikn commented on May 26, 2024

I dont konw why I cant train this model with windows and using 3080, always raise type valueError image and I run this exactly in colab raise the same error when i do in the pycharm

I solve the problem,and the reason is I made some mistakes with the [contents]

Hello,I meet the same problem with you,How did you solve it exactly in the end?
dcc6a51885071b37329577dbcf97a77

from light-sernet.

chengming1108 avatar chengming1108 commented on May 26, 2024

Hello,I meet the same problem with you,How did you solve it exactly in the end?

Hello,I meet the same problem with you,How did you solve it exactly in the end?
image

from light-sernet.

chengming1108 avatar chengming1108 commented on May 26, 2024

I dont konw why I cant train this model with windows and using 3080, always raise type valueError image and I run this exactly in colab raise the same error when i do in the pycharm

I solve the problem,and the reason is I made some mistakes with the [contents]
how to fix?? thanks for reply

image

from light-sernet.

chengming1108 avatar chengming1108 commented on May 26, 2024

you're welcome @nijaaouikhalil, Yes, the program works properly. The screenshot below shows the correct operation of the function (on Linux). Why did you change the pattern? You just need to change the path separator. Screenshot from 2022-05-25 00-30-53

hey tanks for great job
i have some ques for this
tensorflow.python.framework.errors_impl.InvalidArgumentError: Value for attr 'Tindices' of double is not in the list of allowed values: int32, int64
; NodeDef: {{node GatherV2}}; Op<name=GatherV2; signature=params:Tparams, indices:Tindices, axis:Taxis -> output:Tparams; attr=batch_dims:int,default=0; attr=Tparams:type; attr=Tindices:type,allowed=[DT_INT32, DT_INT64]; attr=Taxis:type,allowed=[DT_INT32, DT_INT64]> [Op:GatherV2]
image

my tensor version is tensorflow 2.4.0rc0

from light-sernet.

STU-ECHO avatar STU-ECHO commented on May 26, 2024

I dont konw why I cant train this model with windows and using 3080, always raise type valueError image and I run this exactly in colab raise the same error when i do in the pycharm

I solve the problem,and the reason is I made some mistakes with the [contents]
how to fix?? thanks for reply

image

I feel sorry Cause I totally forget how I solve the problem,and unfortunately ,those code are saved in another PC which in a location I cant reach recently .I do have a little memorary semms that one of the audio file went wrong from session1,(the name of the file is wrong,).delete it. Hope its a memory from this code,maybe you can check it

from light-sernet.

STU-ECHO avatar STU-ECHO commented on May 26, 2024

I dont konw why I cant train this model with windows and using 3080, always raise type valueError image and I run this exactly in colab raise the same error when i do in the pycharm

I solve the problem,and the reason is I made some mistakes with the [contents]
how to fix?? thanks for reply

image

I feel sorry Cause I totally forget how I solve the problem,and unfortunately ,those code are saved in another PC which in a location I cant reach recently .I do have a little memorary semms that one of the audio file went wrong from session1,(the name of the file is wrong,).delete it. Hope its a memory from this code,maybe you can check it

Seems like its the IEMOCAP‘s directory have to be same with author's ,"https://github.com/AryaAftab/LIGHT-SERNET/issues/3#issuecomment-1132817523",those are my Memory fragments,try weather if it works

from light-sernet.

chengming1108 avatar chengming1108 commented on May 26, 2024

Thanks a lot @AryaAftab I fixed it, turns out the issue was that I didn't delete the wave files inside the dialog folder and didn't escape them when reading the filenames.

hey,I'm so excited that you can reply me.Iam Chinese but my English is poor.I am try to solve the problem,can I have you wechat . I wanna discuss technology. My Wechat number is CM995958609

from light-sernet.

chengming1108 avatar chengming1108 commented on May 26, 2024

you're welcome @nijaaouikhalil,
Yes, the program works properly. The screenshot below shows the correct operation of the function (on Linux).
Why did you change the pattern? You just need to change the path separator.

i fix it。is a fool question,thanks you reply 。Have a good day

from light-sernet.

Related Issues (9)

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.