liuyiwai / simple-iam Goto Github PK
View Code? Open in Web Editor NEWA simple PyTorch implementation of Learning Instance Activation Maps for Weakly Supervised Instance Segmentation, in CVPR 2019
License: MIT License
A simple PyTorch implementation of Learning Instance Activation Maps for Weakly Supervised Instance Segmentation, in CVPR 2019
License: MIT License
Hi, I tried to reproduce the result of IAM, but i failed. Some things I found may help:
Hope this information is helpful to you.
Hi! Can you share the code of deal proposal from .mat file to .json with me?
Thanks!
Hi, nice job!
When I used your code to test on voc2012 test, i met the question following. Could you give me a suggestion?
Thanks very much!
Traceback (most recent call last):
File "main.py", line 89, in
main(args)
File "main.py", line 74, in main
solver.inference(data_loader)
File "/disk4/zwy_data/wsis/simple-IAM/solver.py", line 491, in inference
cmap=plt.cm.get_cmap())
File "/home/harry/anaconda2/envs/siam/lib/python3.6/site-packages/matplotlib/init.py", line 1447, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "/home/harry/anaconda2/envs/siam/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 5523, in imshow
im.set_data(X)
File "/home/harry/anaconda2/envs/siam/lib/python3.6/site-packages/matplotlib/image.py", line 698, in set_data
self._A = cbook.safe_masked_invalid(A, copy=True)
File "/home/harry/anaconda2/envs/siam/lib/python3.6/site-packages/matplotlib/cbook/init.py", line 682, in safe_masked_invalid
x = np.array(x, subok=True, copy=copy)
File "/home/harry/anaconda2/envs/siam/lib/python3.6/site-packages/torch/tensor.py", line 449, in array
return self.numpy()
TypeError: can't convert CUDA tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
My environment was following:
certifi 2020.12.5
cycler 0.10.0
Cython 0.29.22
kiwisolver 1.3.1
matplotlib 3.3.4
numpy 1.19.5
opencv-python 3.4.3.18
Pillow 8.1.0
pip 21.0.1
protobuf 3.15.1
pydensecrf 1.0rc3
pyparsing 2.4.7
python-dateutil 2.8.1
PyYAML 5.4.1
scipy 1.5.4
setuptools 49.6.0.post20210108
six 1.15.0
tensorboardX 2.1
torch 1.3.1
torchvision 0.4.2
wheel 0.36.2
Thanks for your reproduce! Do you have evaluate the performance of IAM?
Hi! I am reading this paper, and your implementation allows me to better understand the idea of this paper, thanks!
And I have some questions about data set. Is your training data is from PASCAL VOC 2012 segmentation? Only use 1464 images for training, and 1449 images for validation?
Or you are using the "augmented pascal voc 2012 data set", which has 10582 images for training? If so, can you share how to get the augmented pascal voc 2012 data set with me?
I just only find this , but i don't know where to get the raw image and other annotations.
By the way,the link to the Pascal voc 2012 data set is dead, it seems that the official website is broken
Thanks for your help! Have a nice day!
RuntimeError: Caught RuntimeError in replica 1 on device 1.
Original Traceback (most recent call last):
File "/home/user/anaconda3/envs/CenterMask/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 60, in _worker
output = module(*input, **kwargs)
File "/home/user/anaconda3/envs/CenterMask/lib/python3.7/site-packages/torch/nn/modules/module.py", line 550, in call
result = self.forward(*input, **kwargs)
File "/media/ExtHDD/zzp/simple-IAM-master/iam/modules/instance_extent_filling.py", line 105, in forward
self.channel_num, self.kernel, self.kernel)
RuntimeError: shape '[2, 112, 112, 16, 3, 3]' is invalid for input of size 1806336
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.