GithubHelp home page GithubHelp logo

salesforce / bannergen Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 2.0 258.66 MB

License: Apache License 2.0

Dockerfile 0.06% Python 84.47% Shell 0.23% C++ 3.05% Cuda 9.51% JavaScript 1.62% Jupyter Notebook 0.10% CSS 0.95%

bannergen's People

Contributors

ningyu1991 avatar

Stargazers

 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

bannergen's Issues

Distribute Workload Across GPUs possible for Instructpix2pix ?

Describe the bug
Using 4 GPUs, each with 16GB memory. But running out of memory with Instructpix2pix model.

To Reproduce
Using the script on 16gb GPU would give the following error:

InstructPix2Pix model loaded.
Loading background image from "test/data/example1/burning.jpg"...
InstructPix2Pix bbox generation...
Instructions:  Add diverse header texts saying \"The problem with burning\" in 24 characters covering 30% area. Add diverse body texts saying \"Exploring the science behind combustion.\" in 40 characters covering 30% area. Add diverse button texts saying \"LEARN ALL ABOUT IT\" in 18 characters covering 10% area.
  0%|                                                                                                                                                                                                                                                                         | 0/25 [00:00<?, ?it/s]
Traceback (most recent call last):

...
...
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 1.58 GiB. GPU 0 has a total capacty of 14.75 GiB of which 1.18 GiB is free. Including non-PyTorch memory, this process has 13.57 GiB memory in use. Of the allocated memory 13.21 GiB is allocated by PyTorch, and 228.72 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

Expected behavior
Normal inference

Note:
Running on AWS. Other models work great, only this model runs OOM

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.