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

windows 10 support -[solved] #59

Open
zoldaten opened this issue Apr 4, 2024 · 0 comments
Open

windows 10 support -[solved] #59

zoldaten opened this issue Apr 4, 2024 · 0 comments

Comments

@zoldaten
Copy link

zoldaten commented Apr 4, 2024

hi!
it was complicated but i started it working on Windows.
i.e.:
python render.py configs/256res/cars_256_pretrained.yaml

1.pip install kornia==0.7.2

2.fix scipy issue (as i have scipy==1.12.0 installed)
in giraffe\im2scene\camera.py replace:
r = Rot.from_euler(axis, value * 2 * np.pi).as_dcm()
with
r = Rot.from_euler(axis, value * 2 * np.pi).as_matrix()

*see https://stackoverflow.com/questions/65628149/ratcave-scipy-spatial-transform-rotation-rotation-object-has-no-attribute-a

  1. in giraffe\im2scene\giraffe\rendering.py
    replace:
if is_full_rotation:
            idx_paper = np.linspace(
                0, n_steps - n_steps // img_n_steps, img_n_steps).astype(np.int)

with

if is_full_rotation:
            idx_paper = np.linspace(
                0, n_steps - n_steps // img_n_steps, img_n_steps).astype(int)

and
idx_paper = np.linspace(0, n_steps - 1, img_n_steps).astype(np.int)
with
idx_paper = np.linspace(0, n_steps - 1, img_n_steps).astype(int)

*see - https://stackoverflow.com/questions/74946845/attributeerror-module-numpy-has-no-attribute-int

  1. in giraffe\im2scene\layers.py :
    from kornia.filters import filter2D
    with
    from kornia.filters import filter2d

and
return filter2D(x, f, normalized=True)
with
return filter2d(x, f, normalized=True)

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

1 participant