Giter Site home page Giter Site logo

Comments (5)

RenyunLi0116 avatar RenyunLi0116 commented on September 4, 2024 3

Hi, I met the same problem: D:\Software\Anaconda3\lib\site-packages\soft_renderer-1.0.0-py3.9-win-amd64.egg\soft_renderer\functional\soft_rasterize.py in forward(ctx, face_vertices, textures, image_size, background_color, near, far, fill_back, eps, sigma_val, dist_func, dist_eps, gamma_val, aggr_func_rgb, aggr_func_alpha, texture_type)
RuntimeError: faces must be contiguous
I try your method but it didn't work, do you fix it?

Did you also change the line for textures(42)?

No, just follow your method to change line41 in soft_rasterize.py

Try to modify line 42 using the same method as well.

Wow, solved! Thank you!

from softras.

RenyunLi0116 avatar RenyunLi0116 commented on September 4, 2024

Hi, I met the same problem:
D:\Software\Anaconda3\lib\site-packages\soft_renderer-1.0.0-py3.9-win-amd64.egg\soft_renderer\functional\soft_rasterize.py in forward(ctx, face_vertices, textures, image_size, background_color, near, far, fill_back, eps, sigma_val, dist_func, dist_eps, gamma_val, aggr_func_rgb, aggr_func_alpha, texture_type)

RuntimeError: faces must be contiguous

I try your method but it didn't work, do you fix it?

from softras.

SeVEnMY avatar SeVEnMY commented on September 4, 2024

Hi, I met the same problem: D:\Software\Anaconda3\lib\site-packages\soft_renderer-1.0.0-py3.9-win-amd64.egg\soft_renderer\functional\soft_rasterize.py in forward(ctx, face_vertices, textures, image_size, background_color, near, far, fill_back, eps, sigma_val, dist_func, dist_eps, gamma_val, aggr_func_rgb, aggr_func_alpha, texture_type)

RuntimeError: faces must be contiguous

I try your method but it didn't work, do you fix it?

Did you also change the line for textures(42)?

from softras.

RenyunLi0116 avatar RenyunLi0116 commented on September 4, 2024

Hi, I met the same problem: D:\Software\Anaconda3\lib\site-packages\soft_renderer-1.0.0-py3.9-win-amd64.egg\soft_renderer\functional\soft_rasterize.py in forward(ctx, face_vertices, textures, image_size, background_color, near, far, fill_back, eps, sigma_val, dist_func, dist_eps, gamma_val, aggr_func_rgb, aggr_func_alpha, texture_type)
RuntimeError: faces must be contiguous
I try your method but it didn't work, do you fix it?

Did you also change the line for textures(42)?

No, just follow your method to change line41 in soft_rasterize.py

from softras.

SeVEnMY avatar SeVEnMY commented on September 4, 2024

Hi, I met the same problem: D:\Software\Anaconda3\lib\site-packages\soft_renderer-1.0.0-py3.9-win-amd64.egg\soft_renderer\functional\soft_rasterize.py in forward(ctx, face_vertices, textures, image_size, background_color, near, far, fill_back, eps, sigma_val, dist_func, dist_eps, gamma_val, aggr_func_rgb, aggr_func_alpha, texture_type)
RuntimeError: faces must be contiguous
I try your method but it didn't work, do you fix it?

Did you also change the line for textures(42)?

No, just follow your method to change line41 in soft_rasterize.py

Try to modify line 42 using the same method as well.

from softras.

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.