Giter Site home page Giter Site logo

Comments (4)

SanghyukChun avatar SanghyukChun commented on September 26, 2024

1. why did you not trying edge information for better performance?

Thanks for your suggestion. We did not consider using edge information directly in our method.
Using edge information could be one of the future directions for this work, but now we don't consider using it.

2. the generated image is smaller than the input image

If you mean "smaller" in terms of pixel sizes, it is not a bug.
For example, your input is, say, 1024 x 1024 pixels, but the output is 128 x 128,
then it is our feature, not a bug. Our network uses resized 128 x 128 images.

from lffont.

Johnson-yue avatar Johnson-yue commented on September 26, 2024

@SanghyukChun sorry about the question 2, it is not clear.
Let me recapitulate it....

I know the output image size is 128x128 ,it is fixed, I mean the unicode character outer size, is smaller than 128x128

from lffont.

SanghyukChun avatar SanghyukChun commented on September 26, 2024

@Johnson-yue
Sorry for the late reply, I cannot sure why the phenomenon you asked about, but if I correctly understood your question, I presume that maybe most training examples have a relatively smaller size than your expected one.
A deep model trained in an end-to-end manner (as our method) could be tricky to debug or understand why a thing happens.

As a heuristic, I suggest you manually resizing your input to a larger resolution (e.g., 135 x 135) and apply center crop

from torchvision import transforms
# assume x is a model output tensor
transform = []
# 135 is my random magic number. Please test various number
transform.append(transforms.Resize(135))
transform.append(transforms.CenterCrop(128))
my_transform = transforms.Compose(transform)

new_x = my_transform(x)

from lffont.

Johnson-yue avatar Johnson-yue commented on September 26, 2024

Thanks

from lffont.

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.