Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to include upsampler into the install and provide an upsampler that takes images one by one for a for-loop #51

Open
gintautas12358 opened this issue May 17, 2022 · 5 comments

Comments

@gintautas12358
Copy link

Hello devs,

Using your esim a lot in my project.
And though if it is possible to include upsampler into the install and provide an upsampler that takes images one by one for a for-loop.

I am developing a esim plugin for MuJoCo and that would help :D

@danielgehrig18
Copy link
Contributor

danielgehrig18 commented May 17, 2022 via email

@gintautas12358
Copy link
Author

exactly.

It would be handy to have.

@danielgehrig18
Copy link
Contributor

Hi, I implemented a first version on https://github.com/uzh-rpg/rpg_vid2e/tree/upsampler_packager. Could you have a look? To test it you can use it as such

  1. first install the package
pip install upsampling/
  1. The upsampler can be used as such:
from upsampler import Upsampler

upsampler = Upsampler(I0, t0) # init the upsampler with an RGB (height, width, channel) image, and first timestamp

for I, t in zip(images, timestamps):
    # returns two lists, each with images up to and including I and t
    upsampled_images, upsampled_timestamps = upsampler.upsample_adaptively(I, t) 

@gintautas12358
Copy link
Author

Looks great! Can't wait to try it!

So I encountered some issues

I got an import issue with
from upsampler import Upsampler

fixed:
Needed to add
from .upsampler import Upsampler
in the __init__.py in the installation directory

also running the upsampler I get the error:
/home/palinauskas/anaconda3/envs/vid2e/lib/python3.9/site-packages/upsampler/../../../pretrained_models/film_net/Style/saved_model/{saved_model.pbtxt|saved_model.pb}

so the pretrained_models are missing in the install directory

@gintautas12358
Copy link
Author

Any new update on the matter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants