Giter VIP home page Giter VIP logo

ucnet's People

Contributors

jingzhang617 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ucnet's Issues

The test process

Hi!Thank you for the code, it is easy to run in my machine.
However,I still have several problems after reading the code, could you please give me some hint?

  1. I want to know how to get multiple results generated from one image.
  2. which part in the code is corresponding to the saliency consensus module in the paper.

Training error "NotImplementedError"

Traceback (most recent call last):
File "train.py", line 136, in
pred_post, pred_prior, lattent_loss, depth_pred_post, depth_pred_prior = generator.forward(images,depths,gts)
File "/home/paramshavakmahesha/Documents/TRY4/UCNet/model/ResNet_models.py", line 159, in forward
lattent_loss = torch.mean(self.kl_divergence(self.posterior, self.prior))
File "/home/paramshavakmahesha/Documents/TRY4/UCNet/model/ResNet_models.py", line 146, in kl_divergence
kl_div = kl.kl_divergence(posterior_latent_space, prior_latent_space)
File "/home/paramshavakmahesha/anaconda3/envs/picanet_3.5/lib/python3.5/site-packages/torch/distributions/kl.py", line 161, in kl_divergence
raise NotImplementedError
NotImplementedError

how can I generate two results from one image?

As shown in competing_results_show.png, there are ours1 and ours2. However, only one result generated from one image in test.py. I want to know how to get multiple results generated from one image.

Any suggestions for this bug ?

python train.py
Traceback (most recent call last):
File "train.py", line 8, in
from model.ResNet_models import Generator
File "/home/ali/UCNet-master/model/ResNet_models.py", line 5, in
from ResNet import B2_ResNet
ModuleNotFoundError: No module named 'ResNet'

ValueError

Hello,

Have you encountered this error during training ?

Traceback (most recent call last):
File "train.py", line 136, in
pred_post, pred_prior, latent_loss, depth_pred_post, depth_pred_prior = generator.forward(images,depths,gts)
File "/content/UCNet/model/ResNet_models.py", line 157, in forward
self.posterior, muxy, logvarxy = self.xy_encoder(torch.cat((x,depth,y),1))
File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/content/UCNet/model/ResNet_models.py", line 125, in forward
dist = Independent(Normal(loc=mu, scale=torch.exp(logvar)), 1)
File "/usr/local/lib/python3.7/dist-packages/torch/distributions/normal.py", line 50, in init
super(Normal, self).init(batch_shape, validate_args=validate_args)
File "/usr/local/lib/python3.7/dist-packages/torch/distributions/distribution.py", line 56, in init
f"Expected parameter {param} "
ValueError: Expected parameter loc (Tensor of shape (10, 3)) of distribution Normal(loc: torch.Size([10, 3]), scale: torch.Size([10, 3])) to satisfy the constraint Real(), but found invalid values:
tensor([[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan],
[nan, nan, nan]], device='cuda:0', grad_fn=)

saliency map on DUTS-TE, DUT-OMRON, ECSSD, HKU-IS, PASCAL-S

Thanks for the good work. Are you planning to open train/test code for RGB SOD? Also I found that there are no results on DUTS-TE, DUT-OMRON, ECSSD, HKU-IS, PASCAL-S which were reported on the paper. Will it be available sooner or later?

code

hello, where is your code???

Hi,

perblom:ModuleNotFoundError: No module named 'ResNet'
When i first run test.py in win10,I ran into that problem.
Then I type "PIP install ResNet" and download it successfully, then I run it again and still encounter the same problem.
what can i do,:-)

diverse predictions

@JingZhang617 Hi! Thanks for your excellent works!
In the paper, you mentioned that you used hide-and-seek to generate five ground truths. In the code, the network learns from only one initial ground truth. Could you please give me a favor?

Besides, I generate results for test images using the provided models. I find the results for one image are the same. Could you tell me how to generate diverse outputs like Figure 8?

Looking forward to your answer. Thanks again!

loading tested model error----tensor size mismatch

i download the model_100_gen.pth and load it in the test.py
when i run the test.py,the error is :
size mismatch for sal_encoder.conv_depth1.conv.weight: copying a param with shape torch.Size([3, 9, 3, 3]) from checkpoint, the shape in current model is torch.Size([3, 14, 3, 3]).

ABP

Hi, could you please release the code for ABP? Thanks a lot!

vgg16 or resnet50?

The released code is using resnet50 as backbone. How about the provided saliency maps, vgg16 or resnet50? Can you also share the code of vgg version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.