Skip to content

Error in traning <using Colab> #5

@VYRION-Ai

Description

@VYRION-Ai

!python /content/SpeakerProfiling/train_timit.py --data_path='/content/dataset/wav_data' --speaker_csv_path='/content/SpeakerProfiling/Dataset/data_info_height_age.csv' --noise_dataset_path='/content/noise_dataset'

Global seed set to 100
Training Model on TIMIT Dataset
#Cores = 4 #GPU = -1
/usr/local/lib/python3.7/dist-packages/torchaudio/functional/functional.py:433: UserWarning: At least one mel filterbank has all zero values. The value for n_mels (128) may be set too high. Or, the value for n_freqs (201) may be set too low.
"At least one mel filterbank has all zero values. "
/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py:481: UserWarning: This DataLoader will create 4 worker processes in total. Our suggested max number of worker in current system is 2, which is smaller than what this DataLoader is going to create. Please be aware that excessive worker creation might get DataLoader running slow or even freeze, lower the worker number to avoid potential slowness/freeze if necessary.
cpuset_checked))
Dataset Split (Train, Validation, Test)= 3920 700 1680
/usr/local/lib/python3.7/dist-packages/deprecate/deprecation.py:115: LightningDeprecationWarning: The MeanSquaredError was deprecated since v1.3.0 in favor of torchmetrics.regression.mean_squared_error.MeanSquaredError. It will be removed in v1.5.0.
stream(template_mgs % msg_args)
/usr/local/lib/python3.7/dist-packages/deprecate/deprecation.py:115: LightningDeprecationWarning: The MeanAbsoluteError was deprecated since v1.3.0 in favor of torchmetrics.regression.mean_absolute_error.MeanAbsoluteError. It will be removed in v1.5.0.
stream(template_mgs % msg_args)
Model Details: #Params = 671345 #Trainable Params = 671345
/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/connectors/accelerator_connector.py:111: LightningDeprecationWarning: Trainer(distributed_backend=ddp) has been deprecated and will be removed in v1.5. Use Trainer(accelerator=ddp) instead.
f"Trainer(distributed_backend={distributed_backend}) has been deprecated and will be removed in v1.5."
Traceback (most recent call last):
File "/content/SpeakerProfiling/train_timit.py", line 131, in
distributed_backend='ddp'
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/connectors/env_vars_connector.py", line 40, in insert_env_defaults
return fn(self, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/trainer.py", line 421, in init
max_time,
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/connectors/callback_connector.py", line 52, in on_trainer_init
self._configure_checkpoint_callbacks(checkpoint_callback)
File "/usr/local/lib/python3.7/dist-packages/pytorch_lightning/trainer/connectors/callback_connector.py", line 77, in _configure_checkpoint_callbacks
raise MisconfigurationException(error_msg)
pytorch_lightning.utilities.exceptions.MisconfigurationException: Invalid type provided for checkpoint_callback: Expected bool but received <class 'pytorch_lightning.callbacks.model_checkpoint.ModelCheckpoint'>. Pass callback instances to the callbacks argument in the Trainer constructor instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions