llz-lian / bysjchange_polygon_rnn Goto Github PK
View Code? Open in Web Editor NEW毕业设计
毕业设计
The code in train.py cannot train the PolygonNet in mymodel.py. I found that this is a multi-task learning. Can you update your code? Thank you!!!
hello, can I ask you a question?
I always meet the problem:
it trouble me a lot
Loading completed!
Traceback (most recent call last):
File "d:/bysjchange_polygon_RNN-main/train.py", line 110, in
train(config, config['pretrained'])
File "d:/bysjchange_polygon_RNN-main/train.py", line 52, in train
for step, data in enumerate(Dataloader):#4->
File "D:\Segment\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 363, in next
data = self._next_data()
File "D:\Segment\envs\pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 403, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "D:\Segment\envs\pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 47, in fetch
return self.collate_fn(data)
File "D:\Segment\envs\pytorch\lib\site-packages\torch\utils\data_utils\collate.py", line 86, in default_collate
raise TypeError(default_collate_err_msg_format.format(elem_type))
TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'NoneType'>
How can I solve the None Type Error?
Thank you and best wishes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.