GithubHelp home page GithubHelp logo

Comments (6)

cornerfarmer avatar cornerfarmer commented on June 6, 2024 1

Hey @Bainily028,

you could also use blenderproc without installing it via pip. Simply clone it and then use python3 cli.py instead of blenderproc:

git clone https://github.com/DLR-RM/BlenderProc
cd BlenderProc
python3 cli.py run ...

from blenderproc.

Bainily028 avatar Bainily028 commented on June 6, 2024 1

@cornerfarmer
Okay, I got it. Thank you very much for your patient answer, it has been very helpful to me.
Wishing you a happy day! :>

from blenderproc.

cornerfarmer avatar cornerfarmer commented on June 6, 2024

Hey @Bainily028,

you cannot just move an installed pip package to a new location, as it contains hardcoded paths.
To install pip packages on offline systems, you could instead use e.g. this way: https://stackoverflow.com/a/14447068

from blenderproc.

Bainily028 avatar Bainily028 commented on June 6, 2024

Hello @cornerfarmer , thank you very much for your multiple replies and answers to my questions.
Your suggestion is useful, but my requirement may be more inclined to directly package the program and call it with a Python interpreter rather than installing it offline.
Therefore, I borrowed the method of #840. But similarly, the issues that arose in the #901 discussion sheet once again stopped me.
During the runtime, my code was able to successfully render and save the results correctly. But when the program ends running, there is no Blender quit like when running a script with Blenderproc run normally. Is this because running the program without a command line cannot release Blender related packages? And it seems to have caused a significant amount of memory leaks, with memory usage increasing linearly with each call to render. The information is shown in the following figure:
image

Because I saw no further discussion in #901. So I would like to ask you again for solutions to the relevant issues.Looking forward to your reply.

from blenderproc.

Bainily028 avatar Bainily028 commented on June 6, 2024

Hello @cornerfarmer , thank you for your prompt reply.

I have tried the method you suggested and I am glad it is effective.

But I noticed that running the program like this still requires downloading the blender or using the -- custom blender path command to specify the location of the already downloaded blender. Taking into account #840 (the feature that blender3.4 can be called as a Python package). My original attempt was to use our own Python environment and modules, rather than running the program in the form of plugins. This seems to deviate from my original attempt.

So can we achieve the purpose proposed in discussion #840?

  • Using the Python cli. py run xxx command without downloading Blender (which seems difficult).

  • Alternatively, using Python xxx does not result in the memory overflow situation I described last time.

from blenderproc.

cornerfarmer avatar cornerfarmer commented on June 6, 2024

Why can you not download blender on another machine, copy it and then use --custom-blender-path? This seems to be the easiest solution.

I cannot give support for #840, as this is not an active feature of bproc and probably takes some effort to get to work.

from blenderproc.

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.