Hello all. Thank you for your wonderful work!
I'm here to kindly ask you for assistance in training this model.
I made conda virtual environment and just strictly followed your instruction, except installing setuptools==59.5.0.
But while training the model, I got an error as follows:
Error executing job with overrides: []
Traceback (most recent call last):
File "train.py", line 44, in run_experiment
train(config)
File "train.py", line 22, in train
dad3d_net = FlameLightningModel(model=model, config=config, train=train_dataset, val=val_dataset)
File "/home/kim/myface/dad/model/model_training/train/flame_lightning_model.py", line 72, in __init__
self.iou_metric = SoftIoUMetric(compute_on_step=True)
File "/home/kim/myface/dad/model/model_training/metrics/iou.py", line 44, in __init__
super().__init__(
File "/home/kim/anaconda3/envs/dadhead/lib/python3.8/site-packages/torchmetrics/metric.py", line 146, in __init__
raise ValueError(f"Unexpected keyword arguments: {', '.join(kwargs_)}")
ValueError: Unexpected keyword arguments: `compute_on_step`
What I did so far is put the dataset in the DAD-3DHeads/dataset/ directory, and installed the requirements.txt.
I did not changed any setting in the .yaml files.
I installed setuptools==59.5.0 to fix the following error while running train.py before getting above error.
This is the error I fixed.
Traceback (most recent call last):
File "train.py", line 8, in <module>
from model_training.train.trainer import DAD3DTrainer
File "/home/kim/myface/dad/DAD-3DHeads/model_training/train/trainer.py", line 5, in <module>
from pytorch_lightning import Trainer
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/__init__.py", line 30, in <module>
from pytorch_lightning.callbacks import Callback # noqa: E402
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/callbacks/__init__.py", line 26, in <module>
from pytorch_lightning.callbacks.pruning import ModelPruning
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/callbacks/pruning.py", line 31, in <module>
from pytorch_lightning.core.lightning import LightningModule
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/core/__init__.py", line 16, in <module>
from pytorch_lightning.core.lightning import LightningModule
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/core/lightning.py", line 40, in <module>
from pytorch_lightning.loggers import LightningLoggerBase
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/loggers/__init__.py", line 18, in <module>
from pytorch_lightning.loggers.tensorboard import TensorBoardLogger
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/pytorch_lightning/loggers/tensorboard.py", line 26, in <module>
from torch.utils.tensorboard import SummaryWriter
File "/home/kim/anaconda3/envs/dadhead2/lib/python3.8/site-packages/torch/utils/tensorboard/__init__.py", line 4, in <module>
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'
My python version is 3.8.19
And these are the packages on my machine
Dear @NeelayS @KupynOrest @burnmyletters @t-martyniuk,
Hello all. Thank you for your wonderful work! I'm here to kindly ask you for assistance in training this model.
I made conda virtual environment and just strictly followed your instruction, except installing setuptools==59.5.0. But while training the model, I got an error as follows:
This is just same with an other guy's issue: https://github.com/PinataFarms/DAD-3DHeads/issues/39
What I did so far is put the dataset in the DAD-3DHeads/dataset/ directory, and installed the requirements.txt. I did not changed any setting in the .yaml files.
model_training/config/train.yaml
I installed setuptools==59.5.0 to fix the following error while running train.py before getting above error. This is the error I fixed.
My python version is 3.8.19 And these are the packages on my machine
Should I had to do something before training the model?
Thank you in advance!