Git Product home page Git Product logo

Comments (9)

victorca25 avatar victorca25 commented on August 11, 2024 1

Understandable. Just want to note that even with the warnings and no changes, it also works perfectly, so it's more of a minor inconvenience than a problem.

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024
  1. Thanks for the compliments.
  2. IDK why you get these messages. Please verify your environment is exactly as specified in the requirements.txt.
  3. I didn't try the network on huge images, but on realistic sized ones (few MegaPixels) - it works.. On the other hand, very small images (200x200 pixels) would not work very well. If you are interested in such images, I can elaborate.

from kernelgan.

zerodohero avatar zerodohero commented on August 11, 2024
  1. Thanks for the compliments.
  2. IDK why you get these messages. Please verify your environment is exactly as specified in the requirements.txt.
  3. I didn't try the network on huge images, but on realistic sized ones (few MegaPixels) - it works.. On the other hand, very small images (200x200 pixels) would not work very well. If you are interested in such images, I can elaborate.

Thank you for your prompt reply
My operating environment is indeed different from the requirement. Is this just related to the environment?Does this warning affect the outcome?
The images I currently test are really around 200200, but most of the images I will run next time are above 70007000, so the program will be very easy to rebuild, right?

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024

I am not familiar with these warnings but I suspect the environment.
7000x7000 is larger than I experimented on - I hope it works well... It should!

from kernelgan.

zerodohero avatar zerodohero commented on August 11, 2024

I am not familiar with these warnings but I suspect the environment.
7000x7000 is larger than I experimented on - I hope it works well... It should!

ok,Thank you for your reply

from kernelgan.

victorca25 avatar victorca25 commented on August 11, 2024

Hello. I (and probably everyone using a recent pytorch version) also get the warnings. These happen on three of the losses: BoundariesLoss, SumOfWeightsLoss and CentralizedLoss. Two of them are easy to fix, as they only need to add the missing dimension, but BoundariesLoss compares a fully expanded kernel (torch.Size([1, 1, 13, 13])) to the self.zero_label Variable, which only has one dimension of size 'k_size'. If expanded to the correct size, (1 x 1 x k_size x k_size) the warning goes away.

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024

What torch version are you using?

from kernelgan.

victorca25 avatar victorca25 commented on August 11, 2024

Pytorch 1.3.0 and 1.6.0, tested on both.

from kernelgan.

sefibk avatar sefibk commented on August 11, 2024

I specified in the requirements torch=1.0.0.
Try that version, I do not want to change the code without understanding the degradation

from kernelgan.

Related Issues (20)

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.