Comments (3)
我没有复现出您的这个bug,有更多的信息吗?
launch_training在这里.
from stid.
嗯嗯,它是这个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.
使用一下相对路径哈?绝对路径应该就是会报错的。
from stid.
Related Issues (18)
- Code HOT 1
- 关于模型维度的处理 HOT 6
- 有关于空间Identity HOT 5
- The time series embedding in file "stid_arch.py" HOT 2
- Some questions about the Visualization Section in the paper. HOT 3
- stid_arch.py代码问题 HOT 1
- 关于Spatial and Temporal Identities的问题 HOT 2
- easy-torch和pytorch1.10.0冲突 HOT 1
- Questions about the time of day embedding HOT 3
- 请教一下可视化的代码,能否分享呢?在二维空间中的embedding的可视化的过程 HOT 3
- 请问scaler pkl文件在哪里? HOT 1
- 小白请教是否没有公开模型测试部分的代码 HOT 1
- 请问为什么没有用PEMS03呢?谢谢 HOT 1
- sth about my own dataset HOT 2
- node_emb为什么不和his_data数据交互呢? HOT 4
- How to get prediction with shape [B, L, N, C]
- Question about T^TiD and T^DiW HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stid.