Giter VIP home page Giter VIP logo

dst's People

Contributors

sunniesuhyoung 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  avatar  avatar  avatar

dst's Issues

colab issue

colab fetches a folder in your google drive instead of cloning the repo which is a bit different than this repo in getting the nbb points

RuntimeError: solve_cuda: U(459,459) is zero, singular U.

Thank you for sharing your amazing work!!

I'm trying to run the code using my own data, but singularity error happens every time.

I've checked that zwfcrazy raised the same issue. In response to this, RazvanRotaru said deleting the NBB and re-downloading it would help.
However, deleting NBB doesn't really help.

Could you help me to solve this problem?

Traceback (most recent call last):
File "main.py", line 115, in
device=device)
File "/root/DST/styletransfer.py", line 143, in DST
new_im, content_im_warp, warp_field = apply_warp(new_im, [src_Kpts_aug], [dst_Kpts_aug], device, sharp=sharp_warp, im2=content_im_warp)
File "/root/DST/warp.py", line 432, in apply_warp
new_im, new_im2, warp_field = image_warp(new_im, dst, dst-src, device, sharp=sharp, img2=new_im2)
File "/root/DST/warp.py", line 86, in image_warp
w, v = solve_interpolation(dst_pts, flow_pts, device)
File "/root/DST/warp.py", line 226, in solve_interpolation
w_v, _ = torch.solve(rhs, lhs)
RuntimeError: solve_cuda: U(459,459) is zero, singular U.

training

Hello, does this model works only for single image translation or it is also possible to train for multiple images? I mean I tried to reproduce your work with my own datasets but I couldn't train for a large number of images it requires only one image at a time.

Weights

Hello, Amazing work!
Can you share some trained weights for evaluation and testing purpose?

Inference time of the model

Hi,
Thank you for open sourcing such a great work.

Can you tell me the inference time of the model(end to end , including finding NBB and everything) ?
I would have checked it but seems like not all files have been added yet.

Thanks.

Singularity happens sometimes in solve_interpolation

Sometimes singularity happens when calling solve_interpolation.

Traceback (most recent call last):
File "main.py", line 115, in
device=device)
File "/root/DST/styletransfer.py", line 144, in DST
new_im, content_im_warp, warp_field = apply_warp(new_im, [src_Kpts_aug], [dst_Kpts_aug], device, sharp=sharp_warp, im2=content_im_warp)
File "/root/DST/warp.py", line 432, in apply_warp
new_im, new_im2, warp_field = image_warp(new_im, dst, dst-src, device, sharp=sharp, img2=new_im2)
File "/root/DST/warp.py", line 86, in image_warp
w, v = solve_interpolation(dst_pts, flow_pts, device)
File "/root/DST/warp.py", line 226, in solve_interpolation
w_v, _ = torch.solve(rhs, lhs)
RuntimeError: solve_cuda: U(371,371) is zero, singular U.

I tested 10 image pairs, 2 of them got this error.

Update: this seems to be a random event. For the same pair of images, it may or may not happen.

Image dimension may vanish when image aspect ratio is large

When the image aspect ratio is large, after resizing the image with respect to the long edge, the shorter edge length becomes too small and the short edge will vanish during feature extraction because of the downsampling process.

Optimizing at scale 1, image size (40, 64)
Traceback (most recent call last):
File "main.py", line 115, in
device=device)
File "/root/DST/styletransfer.py", line 113, in DST
feat_e = extractor.forward_samples_hypercolumn(style_im_scaled, samps=1000)
File "/root/DST/vggfeatures.py", line 36, in forward_samples_hypercolumn
feat = self.forward(X)
File "/root/DST/vggfeatures.py", line 32, in forward
feat = self.forward_base(x)
File "/root/DST/vggfeatures.py", line 24, in forward_base
x = self.vgg_layersi
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 722, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/pooling.py", line 159, in forward
self.return_indices)
File "/opt/conda/lib/python3.7/site-packages/torch/_jit_internal.py", line 247, in fn
return if_false(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/functional.py", line 576, in _max_pool2d
input, kernel_size, stride, padding, dilation, ceil_mode)
RuntimeError: Given input size: (512x1x4). Calculated output size: (512x0x2). Output size is too small

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.