ftpipehd's People
ftpipehd's Issues
你好,我在使用VGG 模型中遇到了问题
当我使用vgg_config.yml进行训练时,运行main.py文件报错如下:
Traceback (most recent call last): File "/home/nahida/workspace/FTPipeHD/main.py", line 65, in <module> main() File "/home/nahida/workspace/FTPipeHD/main.py", line 40, in main single_train(args) File "/home/nahida/workspace/FTPipeHD/main.py", line 47, in single_train train_single() File "/home/nahida/workspace/FTPipeHD/utils/train_single.py", line 45, in train_single train_epoch(model, optimizer, lr, train_dataloader, test_dataloader, epoch) File "/home/nahida/workspace/FTPipeHD/utils/train_single.py", line 62, in train_epoch cur_loss, cur_correct,num = train_step(batch, model, optimizer, iter_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/memory_profiler.py", line 1188, in wrapper val = prof(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/anaconda3/lib/python3.11/site-packages/memory_profiler.py", line 761, in f return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/home/nahida/workspace/FTPipeHD/utils/train_single.py", line 99, in train_step outputs,loss = model(**batch) argument
after ** must be a mapping, not list`
我猜测是这里的batch是应对处理如BERT等预训练模型时,输入会以键值对的形式组织,但VGG 的输入是list形式,请问作者这里我需要在哪里进行修改吗?
data文件夹缺失问题
我在init.py文件发现这一行 parser.add_argument('--data', type=str, default='../data/voc.yaml', help='data.yaml path')
但是实际上在github中我并没有找到相关文件夹,请问我该如何获得他们?
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.