Git Product home page Git Product logo

Comments (6)

soonhyo avatar soonhyo commented on September 24, 2024 1

It seems this issue might be related to the version of the some package, though I'm not certain about the exact versions. However, you can run 'train.py' by modifying the code as follows: change for logger in self.logger: to for logger in [self.logger]:.

from dad-3dheads.

Bamboo429 avatar Bamboo429 commented on September 24, 2024

Hi,
I have the same issue when running train.py.
Could you please kindly tell me how to fix it?
Thank you.

from dad-3dheads.

t-martyniuk avatar t-martyniuk commented on September 24, 2024

Hi @blueorca21 @Bamboo429,

could you please elaborate?

from dad-3dheads.

RIA1159 avatar RIA1159 commented on September 24, 2024

File "train.py", line 48, in
run_experiment()
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/main.py", line 49, in decorated_main
_run_hydra(
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/_internal/utils.py", line 367, in _run_hydra
run_and_report(
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/_internal/utils.py", line 214, in run_and_report
raise ex
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/_internal/utils.py", line 211, in run_and_report
return func()
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/_internal/utils.py", line 368, in
lambda: hydra.run(
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 110, in run
_ = ret.return_value
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/core/utils.py", line 233, in return_value
raise self._return_value
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/hydra/core/utils.py", line 160, in run_job
ret.return_value = task_function(task_cfg)
File "train.py", line 44, in run_experiment
train(config)
File "train.py", line 24, in train
dad3d_trainer.fit()
File "/mnt/d/desktop/study/DAD-3DHeads/model_training/train/trainer.py", line 58, in fit
self.local_train(test_fn=test_fn)
File "/mnt/d/desktop/study/DAD-3DHeads/model_training/train/trainer.py", line 24, in local_train
self.trainer.fit(self.dad3d_net)
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 771, in fit
self._call_and_handle_interrupt(
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 724, in _call_and_handle_interrupt
return trainer_fn(*args, **kwargs)
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 812, in _fit_impl
results = self._run(model, ckpt_path=self.ckpt_path)
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1237, in _run
results = self._run_stage()
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1324, in _run_stage
return self._run_train()
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1343, in _run_train
self._pre_training_routine()
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1337, in _pre_training_routine
self._call_lightning_module_hook("on_pretrain_routine_start")
File "/home/ria/anaconda3/envs/raft/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 1596, in _call_lightning_module_hook
output = fn(*args, **kwargs)
File "/mnt/d/desktop/study/DAD-3DHeads/model_training/train/flame_lightning_model.py", line 248, in on_pretrain_routine_start
for logger in self.logger:
TypeError: 'TensorBoardLogger' object is not iterable

I have the same problem here._

from dad-3dheads.

RIA1159 avatar RIA1159 commented on September 24, 2024

could you please tell me the version of your tensorboard ? It might help.

from dad-3dheads.

t-martyniuk avatar t-martyniuk commented on September 24, 2024

it's tensorboard==2.12.0 in my env for this project. hope this helps.

from dad-3dheads.

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.