Comments (11)
Or you can run make install
in instance_occlsegm
and build conda environment without ROS.
https://github.com/start-jsk/jsk_apc/blob/master/demos/instance_occlsegm/Makefile
from jsk_apc.
After running
make install
ininstance_occlsegm
directory, and as in the sequence of the readme file, I followed by these two commands:$ cd examples/instance_occlsegm/panoptic_occlusion_segmentation $ ./train.py --gpu 0 --notrain pix # instnce-only
And I got this error:
# ----------------------------------------------------------------------------- {'anchor_scales': (4, 8, 16, 32), 'batch_size': 1, 'class_names': ['avery_binder', 'balloons', 'band_aid_tape', 'bath_sponge', 'black_fashion_gloves', 'burts_bees_baby_wipes', 'colgate_toothbrush_4pk', 'composition_book', 'crayons', 'duct_tape', 'epsom_salts', 'expo_eraser', 'fiskars_scissors', 'flashlight', 'glue_sticks', 'hand_weight', 'hanes_socks', 'hinged_ruled_index_cards', 'ice_cube_tray', 'irish_spring_soap', 'laugh_out_loud_jokes', 'marbles', 'measuring_spoons', 'mesh_cup', 'mouse_traps', 'pie_plates', 'plastic_wine_glass', 'poland_spring_water', 'reynolds_wrap', 'robots_dvd', 'robots_everywhere', 'scotch_sponges', 'speed_stick', 'table_cloth', 'tennis_ball_container', 'ticonderoga_pencils', 'tissue_box', 'toilet_brush', 'white_facecloth', 'windex'], 'dataset': 'occlusion', 'git_hash': '6ed93840', 'gpu': 0, 'hostname': 'BQ-DX1100-CT', 'lr': 0.00125, 'lr_base': 0.00125, 'mask_loss': 'softmax', 'max_epoch': 120, 'max_size': 1000, 'min_size': 600, 'model': 'resnet50', 'multi_node': False, 'n_gpu': 1, 'n_node': 1, 'noaugmentation': False, 'notrain': 'pix', 'out': '/home/student2/PycharmProjects/masterproject/relook/jsk_apc/demos/instance_occlsegm/examples/instance_occlsegm/panoptic_occlusion_segmentation/logs/20201217_035948.655918', 'pix_loss_scale': 1.0, 'pooling_func': 'align', 'pretrained_model': None, 'rpn_dim': 512, 'seed': 0, 'step_size': [80.0, 106.66666666666666], 'timestamp': '2020-12-17T03:59:48.655918', 'weight_decay': 0.0001} # ----------------------------------------------------------------------------- /home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead. warn_deprecated(msg, stacklevel=3) /home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead. warn_deprecated(msg, stacklevel=3) /home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead. warn_deprecated(msg, stacklevel=3) Exception in main training loop: Extension implementation must override __call__. Traceback (most recent call last): File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 319, in run entry.extension(self) File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/extension.py", line 64, in __call__ raise NotImplementedError( Will finalize trainer extensions and updater before reraising the exception. Traceback (most recent call last): File "./train.py", line 386, in <module> main() File "./train.py", line 382, in main trainer.run() File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 349, in run six.reraise(*exc_info) File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/six.py", line 703, in reraise raise value File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 319, in run entry.extension(self) File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/extension.py", line 64, in __call__ raise NotImplementedError( NotImplementedError: Extension implementation must override __call__.
Any idea how to circumvent this error?
I changed the chainer version to 5.0.0. It works.
from jsk_apc.
Yes, probably you are right.
It seems demos/instance_occlsegm/examples/instance_occlsegm/semantic_segmentation/view_dataset.py
is missing, which is written in https://github.com/start-jsk/jsk_apc/tree/master/demos/instance_occlsegm#without-ros
https://github.com/start-jsk/jsk_apc/tree/master/demos/instance_occlsegm/examples/instance_occlsegm/semantic_segmentation
However, it seems it is just a typo, and we can run it with occlusion_segmentation
instead of semantic_segmentation
# Dataset for semantic (image-level) occlusion segmentation
cd examples/instance_occlsegm/instance_segmentation
./view_dataset.py
@wkentaro am I right?
from jsk_apc.
Yes, this is a typo ー I sent a fix here: #2728
Thanks for catching and answering this, both!
from jsk_apc.
Please also note that both files "view_dataset.py" , in the README.md ,need another two lines of code:
import sys
sys.path.insert(1, '/home/student2/PycharmProjects/masterproject/relook/jsk_apc/demos/instance_occlsegm')
in order to execute the following line:
from instance_occlsegm_lib.contrib import instance_occlsegm
otherwise a Module not found error appears and it cannot fetch the /instance_occlsegm dir
I suggest it as a temporary solutions, it is not the best style to circumvent the problem, but it works. Otherwise better structure of the code in this file would be needed.
Thank you very much for confirming.
from jsk_apc.
Please also note that both files "view_dataset.py" , in the README.md ,need another two lines of code:
import sys
sys.path.insert(1, '/home/student2/PycharmProjects/masterproject/relook/jsk_apc/demos/instance_occlsegm')
if you build this package with catkin build
, you don't need to set the path because it is ROS package.
but if you want to try it without ROS, you need.
from jsk_apc.
Oh, that's why. I actually didn't install ROS and attempted the 'without ROS' examples thinking it would not affect the code.
Thanks a lot.
from jsk_apc.
After running make install
in instance_occlsegm
directory, and as in the sequence of the readme file, I followed by these two commands:
$ cd examples/instance_occlsegm/panoptic_occlusion_segmentation
$ ./train.py --gpu 0 --notrain pix # instnce-only
And I got this error:
# -----------------------------------------------------------------------------
{'anchor_scales': (4, 8, 16, 32),
'batch_size': 1,
'class_names': ['avery_binder',
'balloons',
'band_aid_tape',
'bath_sponge',
'black_fashion_gloves',
'burts_bees_baby_wipes',
'colgate_toothbrush_4pk',
'composition_book',
'crayons',
'duct_tape',
'epsom_salts',
'expo_eraser',
'fiskars_scissors',
'flashlight',
'glue_sticks',
'hand_weight',
'hanes_socks',
'hinged_ruled_index_cards',
'ice_cube_tray',
'irish_spring_soap',
'laugh_out_loud_jokes',
'marbles',
'measuring_spoons',
'mesh_cup',
'mouse_traps',
'pie_plates',
'plastic_wine_glass',
'poland_spring_water',
'reynolds_wrap',
'robots_dvd',
'robots_everywhere',
'scotch_sponges',
'speed_stick',
'table_cloth',
'tennis_ball_container',
'ticonderoga_pencils',
'tissue_box',
'toilet_brush',
'white_facecloth',
'windex'],
'dataset': 'occlusion',
'git_hash': '6ed93840',
'gpu': 0,
'hostname': 'BQ-DX1100-CT',
'lr': 0.00125,
'lr_base': 0.00125,
'mask_loss': 'softmax',
'max_epoch': 120,
'max_size': 1000,
'min_size': 600,
'model': 'resnet50',
'multi_node': False,
'n_gpu': 1,
'n_node': 1,
'noaugmentation': False,
'notrain': 'pix',
'out': '/home/student2/PycharmProjects/masterproject/relook/jsk_apc/demos/instance_occlsegm/examples/instance_occlsegm/panoptic_occlusion_segmentation/logs/20201217_035948.655918',
'pix_loss_scale': 1.0,
'pooling_func': 'align',
'pretrained_model': None,
'rpn_dim': 512,
'seed': 0,
'step_size': [80.0, 106.66666666666666],
'timestamp': '2020-12-17T03:59:48.655918',
'weight_decay': 0.0001}
# -----------------------------------------------------------------------------
/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead.
warn_deprecated(msg, stacklevel=3)
/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead.
warn_deprecated(msg, stacklevel=3)
/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/imgaug/imgaug.py:184: DeprecationWarning: Function `copy_random_state()` is deprecated. Use `imgaug.random.copy_generator_unless_global_rng` instead.
warn_deprecated(msg, stacklevel=3)
Exception in main training loop: Extension implementation must override __call__.
Traceback (most recent call last):
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 319, in run
entry.extension(self)
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/extension.py", line 64, in __call__
raise NotImplementedError(
Will finalize trainer extensions and updater before reraising the exception.
Traceback (most recent call last):
File "./train.py", line 386, in <module>
main()
File "./train.py", line 382, in main
trainer.run()
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 349, in run
six.reraise(*exc_info)
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/six.py", line 703, in reraise
raise value
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/trainer.py", line 319, in run
entry.extension(self)
File "/home/student2/anaconda3/envs/relook/lib/python3.8/site-packages/chainer/training/extension.py", line 64, in __call__
raise NotImplementedError(
NotImplementedError: Extension implementation must override __call__.
Any idea how to circumvent this error?
from jsk_apc.
We developed this with older Chainer, so maybe you have to check its version or modify the Extension to adapt to the latest version.
from jsk_apc.
Thanks for the response.
I am a bit confused, which CuPy pakage do you have installed in this specific case?
from jsk_apc.
Thanks for the response.
I am a bit confused, which CuPy pakage do you have installed in this specific case?
I download the cupy-cuda101. It works.
from jsk_apc.
Related Issues (20)
- cannot find method :speak in (send *ri* :speak (
- Baxter rotates its wrist to pick an object in tote (Beta) HOT 4
- after ros_control_node error, prismatic joint does not move HOT 1
- Release 4.2.1 HOT 1
- 5.0.0: ARC New Demo HOT 5
- baxter-c1 PC replacement HOT 2
- ERROR: no rosdep rule for 'libcmt' HOT 7
- Automated Build For Docker HOT 4
- baxter.launch in jsk_arc2017_baxter does not work on baxter-c1 HOT 3
- Cupy cannot use cuDNN on baxter-c1 HOT 1
- [sphand_ros] Infinite loop in I2C resetting
- [sphand_ros] Error when servo is initially off
- catkin_virtualenv fails to construct environment HOT 5
- gripper-v8の現在の問題点
- Cannot import matplotlib.pyplot on kinetic and melodic travis tests HOT 3
- How to generate my synthetic2d dataset and train in instance-occlsegm demo HOT 1
- travis-ci.comへの移行 HOT 2
- URDFのmaterialで名前衝突が起きている
- completely move to GA, disable travis and dockerhub
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 jsk_apc.