GithubHelp home page GithubHelp logo

Comments (11)

Ephemeral182 avatar Ephemeral182 commented on July 29, 2024 1

Thank you for sharing!

from udr-s2former_deraining.

cherrysherryplus avatar cherrysherryplus commented on July 29, 2024 1

Hi! I have found one possible solution. The problem may come from the configuration of using TensorBoardLogger in main.py.

The original version (L31-L32, L226) is:

from pytorch_lightning.loggers import WandbLogger,TensorBoardLogger
logger = TensorBoardLogger(r'tb_logs', name='udrs2former')
trainer_defaults = {'devices':[1,2,3],'callbacks':[checkpoint_callback,lr_monitor],'logger':logger}

The first block may be removed and the second can be altered as follows:

train_defaults = {
  # configs of device and callbacks goes here...
  'logger': {
      'class_path': 'lightning.pytorch.loggers.TensorBoardLogger',
      'init_args': {
          'save_dir': 'tb_logs',
          'name': 'udrs2former'
      }
  }
}

from udr-s2former_deraining.

Ephemeral182 avatar Ephemeral182 commented on July 29, 2024 1

This may be caused by the updated version. This is indeed a good solution. Thank you.

from udr-s2former_deraining.

Ephemeral182 avatar Ephemeral182 commented on July 29, 2024

Hi, we train our model by PyTorch-lightning 1.8.0 previously, but I tested my model in latest version of PyTorch-lightning (v2.x) before I release my code. I think it's ok to use this code. Could you share your problems encountered?

from udr-s2former_deraining.

cherrysherryplus avatar cherrysherryplus commented on July 29, 2024

Thanks for your reply! I have run the code successfully after I commented the 'logger': logger in https://github.com/Ephemeral182/UDR-S2Former_deraining/blob/main/train.py#L226.


Before that, the problem is shown as the following screenshot:
image

from udr-s2former_deraining.

Madeline-hyh avatar Madeline-hyh commented on July 29, 2024

Hello, I have the same problem, and when I change the logger, I have another problem, can you please see it? thanks!
image

from udr-s2former_deraining.

Feecuin avatar Feecuin commented on July 29, 2024

你好,我也有同样的问题,当我更换记录器时,我又遇到了另一个问题,你能看看吗?谢谢! 图像

你好,请问你解决了这个问题了吗?

from udr-s2former_deraining.

Madeline-hyh avatar Madeline-hyh commented on July 29, 2024

没有~

from udr-s2former_deraining.

Feecuin avatar Feecuin commented on July 29, 2024

没有~

我也是这个问题,我打算降一下pytorch版本了

from udr-s2former_deraining.

Madeline-hyh avatar Madeline-hyh commented on July 29, 2024

可以试试~

from udr-s2former_deraining.

cherrysherryplus avatar cherrysherryplus commented on July 29, 2024

可以试试~

Hello, I have the same problem, and when I change the logger, I have another problem, can you please see it? thanks! image

感觉2.x版本的lightning的话,可以试试用jsonargparse里的lazyinstance类包裹一下TensorBoardLogger

from udr-s2former_deraining.

Related Issues (9)

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.