Code Monkey home page Code Monkey logo

Comments (13)

yzyouzhang avatar yzyouzhang commented on July 19, 2024

Thank you for your question. Could you please let me know the shape of the input feature you feed into the model? I am not sure if you preprocess the raw audio properly.

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

In this repo, we provided the MATLAB code for preprocessing. If you prefer to use Python, please refer to preprocess.py in our new repo for the recent work https://github.com/yzyouzhang/Empirical-Channel-CM. Thanks.

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

torch.Size([60, 750])

Please find my notebook file what i am doing.

How can i connect with you? email id?
notebook_air_2.zip

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

@yzyouzhang Also i am not able to train the model from scratch , it give me error:
Batch size = 2
GPU : RTX 2060 6 GB

RuntimeError: CUDA out of memory. Tried to allocate 60.00 MiB (GPU 0; 6.00 GiB total capacity; 4.49 GiB already allocated; 0 bytes free; 4.52 GiB reserved in total by PyTorch)

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

torch.Size([60, 750])

Please find my notebook file what i am doing.

How can i connect with you? email id? notebook_air_2.zip

The feature size should be [B, 1, 60, 750].
I checked your code. You have ResNet(1, 16) when you set up the model. It should be ResNet(3, 256) if you want to use my pretrained model.

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

@yzyouzhang Also i am not able to train the model from scratch , it give me error: Batch size = 2 GPU : RTX 2060 6 GB

RuntimeError: CUDA out of memory. Tried to allocate 60.00 MiB (GPU 0; 6.00 GiB total capacity; 4.49 GiB already allocated; 0 bytes free; 4.52 GiB reserved in total by PyTorch)

In my case, I use RTX 1080 Ti 11GB. I can load with batch size 64. So I think batch size 2 should be totally OK for your device. Have you made sure there are no other processes occupying the GPU memory?

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

@yzyouzhang how can i convert my feature size (60,750) to [B, 1, 60, 750].

what is B and 1 means?

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

@yzyouzhang i checked it again , no other process occupying my gpu memory.

could you please share your id or zoom id for further contact to solve this issue?

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

@yzyouzhang what threshold score you have set for real and fake samples?
score = F.softmax(lfcc_outputs)[:, 0]
score

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

@yzyouzhang how can i convert my feature size (60,750) to [B, 1, 60, 750].

what is B and 1 means?

B is the batch size, 1 is the number of channels for CNN.

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

@yzyouzhang what threshold score you have set for real and fake samples? score = F.softmax(lfcc_outputs)[:, 0] score

We do not need a threshold to calculate EER. If you want to classify samples into two classes, you can choose a value between the r1 and r2 of the OCSoftmax.

from air-asvspoof.

yzyouzhang avatar yzyouzhang commented on July 19, 2024

@yzyouzhang i checked it again , no other process occupying my gpu memory.

could you please share your id or zoom id for further contact to solve this issue?

Please contact [email protected] for further zoom discussions. Thanks.

from air-asvspoof.

utkarsh-tyagi avatar utkarsh-tyagi commented on July 19, 2024

ok thanks :)

from air-asvspoof.

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.