Comments (4)
Could you please paste more details error information, I seem to meet similar issues before, but I fail to remember where to fix it, more information may help me remember, thanks.
from featdepth.
Could you please paste more details error information, I seem to meet similar issues before, but I fail to remember where to fix it, more information may help me remember, thanks.
`evaluation..............................................
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 697/697, 14.1 task/s, elapsed: 49s, ETA: 0s
FPS: 96.1853807579687
results len is 697
2020-11-19 19:26:26,335 - INFO - Epoch [1][39810/39810] lr: 0.00010, abs_rel: 0.1431, sq_rel: 1.1167, rmse: 5.7732, rmse_log: 0.2421, a1: 0.7692, a2: 0.9220, a3: 0.9697, scale mean: 39.6816, scale std: 3.6023221015930176
Traceback (most recent call last):
File "train.py", line 103, in
main()
File "train.py", line 99, in main
logger=logger)
File "/media/armin/DATA/FeatDepth-master/mono/apis/trainer.py", line 68, in train_mono
_dist_train(model, dataset_train, dataset_val, cfg, validate=validate)
File "/media/armin/DATA/FeatDepth-master/mono/apis/trainer.py", line 178, in _dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/runner.py", line 380, in run
epoch_runner(data_loaders[i], **kwargs)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/runner.py", line 288, in train
self.call_hook('after_train_epoch')
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/runner.py", line 241, in call_hook
getattr(hook, fn_name)(self)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/hooks/logger/base.py", line 51, in after_train_epoch
self.log(runner)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/hooks/logger/text.py", line 115, in log
self._dump_log(log_dict, runner)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/hooks/logger/text.py", line 82, in _dump_log
mmcv.dump(json_log, f, file_format='json')
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/fileio/io.py", line 82, in dump
handler.dump_to_fileobj(obj, file, **kwargs)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/fileio/handlers/json_handler.py", line 13, in dump_to_fileobj
json.dump(obj, file, **kwargs)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/json/init.py", line 179, in dump
for chunk in iterable:
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type float32 is not JSON serializable
Traceback (most recent call last):
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/torch/distributed/launch.py", line 260, in
main()
File "/media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/torch/distributed/launch.py", line 256, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/media/armin/DATA/anaconda3/envs/test/bin/python', '-u', 'train.py', '--local_rank=0', '--config', '/media/armin/DATA/FeatDepth-master/config/cfg_kitti_fm.py', '--work_dir', 'results']' returned non-zero exit status 1.`
from featdepth.
It is an error of mmcv, we should revise the codes in mmcv (which is /media/armin/DATA/anaconda3/envs/test/lib/python3.7/site-packages/mmcv/runner/hooks/logger/text.py in your situation), change the dump_log function to follows:
This error happens original dump_log fails to change float32 to a proper data type for JSON serialization.
from featdepth.
Thank you, now it is working
from featdepth.
Related Issues (20)
- running infer_singleimage.py in win10 ModuleNotFoundError: No module named 'resource' HOT 1
- it seems that the decoder of the auto-encoder network is not trained in the code HOT 1
- About the training and testing setting. HOT 4
- Is there a way to visually check the output of the FeatureNet HOT 1
- Question about MS evaluation HOT 5
- dataset.flag HOT 1
- An error occurred while training my own dataset HOT 2
- How to start non-distributed training HOT 2
- Why use DistOptimizerHook? HOT 1
- Problems using DDP HOT 2
- Train only Image Reconstruction Model HOT 2
- cfg_kitti_fm.py stops while training, expected 4 input channels, but got 3 channels instead
- train on own dataset with fm_joint.cfg HOT 1
- pose question HOT 1
- pose question HOT 2
- feature-metric loss only use the first output of the Autoencoder HOT 2
- Evaluation Issue HOT 1
- how to use multi-gpus training?
- Weights for Monocular-only training
- 关于online refinement的疑问
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 featdepth.