Giter VIP home page Giter VIP logo

Comments (9)

MarkHershey avatar MarkHershey commented on May 29, 2024

How did you execute the script? What have you tried? What are the outputs? You need to provide more information.

from audiodeepfakedetection.

soumyajee avatar soumyajee commented on May 29, 2024

from audiodeepfakedetection.

soumyajee avatar soumyajee commented on May 29, 2024

I go through the terminal and run python train.py file and i got the following issue after giving the real dataset and fake dataset path such as
real_dir=data/real/wavs",
fake_dir=data/fake/generated_audio/ljspeech_melgan
and i got the following error :
Screenshot from 2022-12-28 10-03-51
2022-12-28 11:33:55,219 - INFO - Batch size: 256, seed: None, epochs: 20

Experiment Failed: ShallowCNN_lfcc_I

2022-12-28 11:33:55,219 - ERROR - eval() missing 1 required positional argument: 'fake_dir'
Traceback (most recent call last):
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 599, in main
experiment(
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 447, in experiment
train(
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 143, in train
Model = eval(model_classname)
TypeError: eval() missing 1 required positional argument: 'fake_dir'

from audiodeepfakedetection.

MarkHershey avatar MarkHershey commented on May 29, 2024

Hi @soumyajee, thanks for the info. The exception is due to a bug in my train.py indeed, there was a conflict between my custom function eval() and Python's built-in function eval(). At line 143, where your error occurred, I intended to use the built-in eval().

I have committed a fix to this bug in the master branch, please use the latest code to run again.

from audiodeepfakedetection.

soumyajee avatar soumyajee commented on May 29, 2024

Again i got the following issue while running trin.py file:
2022-12-29 16:54:21,966 - ERROR -
Traceback (most recent call last):
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 599, in main
experiment(
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 447, in experiment
train(
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 165, in train
assert melgan_dir.is_dir()
AssertionError
Screenshot from 2022-12-29 16-55-05

from audiodeepfakedetection.

MarkHershey avatar MarkHershey commented on May 29, 2024

@soumyajee Can you run python train.py --debug_all and see what the result is? It seems like a data path issue.

from audiodeepfakedetection.

soumyajee avatar soumyajee commented on May 29, 2024

I got the following issue while running train.py --debug_all its following:
Traceback (most recent call last):
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 621, in
main()
File "/home/soumya/deepfake_detection/AudioDeepFakeDetection/train.py", line 589, in main
debug(args.real, args.fake, args.device)
AttributeError: 'Namespace' object has no attribute 'real'
Screenshot from 2022-12-30 10-09-03

from audiodeepfakedetection.

MarkHershey avatar MarkHershey commented on May 29, 2024

@soumyajee you are not using my latest code, this issue has been fixed in commit 5e29c11

from audiodeepfakedetection.

soumyajee avatar soumyajee commented on May 29, 2024

Thanks for ur support we have already solve that issue now our scripts running fine

from audiodeepfakedetection.

Related Issues (6)

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.