Code Monkey home page Code Monkey logo

Comments (11)

preston2006 avatar preston2006 commented on June 16, 2024 1

from .squeeze.squeeze import region_grow

from afm_cvpr2019.

cherubicXN avatar cherubicXN commented on June 16, 2024

Did you compile the cxx files?

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

Did you compile the cxx files?

I have compiled in the lib folder.Just like in the install.md and get the information like another issue.

from afm_cvpr2019.

cherubicXN avatar cherubicXN commented on June 16, 2024

If the squeeze.*.so file has been generated, can you try to import it in the folder of the .so file?

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

If the squeeze.*.so file has been generated, can you try to import it in the folder of the .so file?

Did it mean that I need to cdll.LoadLibrary to import .so file in the squeeze_to_lsg.py.Because it cause the error in this file.
those are error function name
lsgenerator ---> region_grow

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

Sorry to interrupt you.I also have anothor question.I test just one photo which is not in the dataset you provide.Do I need to do some change to the input.I saw the model that need (64,3,3,3).I can't understand this.Which size I need to resize the photo.

from afm_cvpr2019.

cherubicXN avatar cherubicXN commented on June 16, 2024

Sorry to interrupt you.I also have anothor question.I test just one photo which is not in the dataset you provide.Do I need to do some change to the input.I saw the model that need (64,3,3,3).I can't understand this.Which size I need to resize the photo.

The input image should have 3 channels and you need to resize it into 320x320 if you train the model with 320x320 training samples.

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

Sorry to interrupt you.I also have anothor question.I test just one photo which is not in the dataset you provide.Do I need to do some change to the input.I saw the model that need (64,3,3,3).I can't understand this.Which size I need to resize the photo.

The input image should have 3 channels and you need to resize it into 320x320 if you train the model with 320x320 training samples.

If I use the model which you provided,I also need to change the photo to 320?I use the unet.

from afm_cvpr2019.

cherubicXN avatar cherubicXN commented on June 16, 2024

h

Yes

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

h

Yes

In the squeeze_to_lsg.py, line 3 ,you import the
from squeeze.squeeze import region_grow,
and it will be a error. So I substitute it,just like it.
`lib1 = cdll.LoadLibrary('/home/xyf/dataset/rotate/afm_cvpr2019-master/afm_cvpr2019-master/lib/squeeze/squeeze.cpython-35m-x86_64-linux-gnu.so')

rects = lib1.region_grow(xx, yy, theta, np.array([H, W], dtype=np.int32))

I use the cdll to load the .so file,but it make other error.AttributeError: squeeze.cpython-35m-x86_64-linux-gnu.so: undefined symbol: region_grow`

from afm_cvpr2019.

WujiangXu avatar WujiangXu commented on June 16, 2024

I can't use the function in the squeeze_to_lsg.py. It called region_grow.Is it important to the information for the line.

from afm_cvpr2019.

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.