Code Monkey home page Code Monkey logo

Comments (3)

zezhishao avatar zezhishao commented on June 10, 2024

我没有复现出您的这个bug,有更多的信息吗?
launch_training在这里.

from stid.

huangzhaor avatar huangzhaor commented on June 10, 2024

嗯嗯,它是这个launcher的一个子函数,通过修改成 from basicts.launcher import launch_training,执行到launch_training内部了。但是出现了一个我不知道缘由和怎么解决的报错。报错信息如下:
Traceback (most recent call last):
File "C:\Users\Asus\Desktop\CarbonPrice\src\models\regression\code_reproduce\STID-recurrence\STID-master\STID\basicts\launcher.py", line 20, in launch_training
easytorch.launch_training(cfg=cfg, devices=gpus, node_rank=node_rank)
File "C:\Users\Asus\AppData\Roaming\Python\Python310\site-packages\easytorch\launcher\launcher.py", line 59, in launch_training
cfg = init_cfg(cfg, node_rank == 0)
File "C:\Users\Asus\AppData\Roaming\Python\Python310\site-packages\easytorch\config\utils.py", line 210, in init_cfg
cfg = import_config(cfg, verbose=save)
File "C:\Users\Asus\AppData\Roaming\Python\Python310\site-packages\easytorch\config\utils.py", line 173, in import_config
cfg = import(path, fromlist=[cfg_name]).CFG
ModuleNotFoundError: No module named 'C:';
我不知道这个C:的问题在哪?
需要说明的是,源代码设置的是:default="examples/STID/STID_PEMS04.py", help="training config"。其中,default的路径我没有看到examples文件夹,对STID_PEMS04放置路径的设置为放在我电脑上的绝对路径的设置了,这可能出现了 'C:'。我写的代码如下,这个会出现问题吗?
parser.add_argument("-c", "--cfg", default=r"C:\Users\Asus\Desktop\CarbonPrice\src\models\regression\code_reproduce\STID-recurrence\STID-master\STID\STID_PEMS04.py", help="training config")

from stid.

zezhishao avatar zezhishao commented on June 10, 2024

使用一下相对路径哈?绝对路径应该就是会报错的。

from stid.

Related Issues (18)

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.