Giter Site home page Giter Site logo

panohead-colab's Introduction

๐Ÿฃ Please follow me for new updates https://twitter.com/camenduru
๐Ÿ”ฅ Please join our discord server https://discord.gg/k5BwmmvJJU
๐Ÿฅณ Please join my patreon community https://patreon.com/camenduru

๐Ÿฆ’ Colab

๐Ÿšฆ WIP ๐Ÿšฆ

Colab Info
Open In Colab PanoHead_colab
(generates 3D models from generated images)
Open In Colab PanoHead_custom_colab
(generates 3D models from custom images)

Tutorial

https://www.youtube.com/watch?v=QwPAo-f5UgM

For .ply output please add --shapes=True

After running the first cell, add your custom image named test.jpg to the in folder.

Screenshot 2023-06-30 191906

image

Maybe for better 3D we can play with
max_batch = 3000000 voxel_resolution = 512 --num-steps=300 --num-steps-pti=300

Screenshot 2023-06-29 171454

--num-steps=100 --num-steps-pti=100 max_batch = 100000

Screenshot 2023-06-29 174704

Free Colab Limit

--num-steps=200 --num-steps-pti=200 max_batch = 100000

image

Main Repo

https://github.com/SizheAn/PanoHead

Page

https://sizhean.github.io/panohead

Paper

https://arxiv.org/abs/2303.13071

Output

--num-steps=300 --num-steps-pti=300

2023-06-29.15-38-28.mp4

Screenshot 2023-06-25 151940 Screenshot 2023-06-25 152636

panohead-colab's People

Contributors

camenduru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

panohead-colab's Issues

Custom image colab endless loop

I started the custom image colab on a free plan.
Uploaded 512*512 jpg face
First it went into at 402 steps.
Then i decreased both steps down to 400.
After doing the 400 steps the colab says 'Saving optimization progress video "/content/output/easy-khair-180-gpc0.8-trans10-025000.pkl/0/proj.mp4"' and looks like stucking in some loop, the cell processing icon is running but nothing is happening for an hour or so already
img-2023-06-29-18-27-33

dataset.json extension mismatch

The dataset.json leaves the original extension, but the file is converted into a jpeg which results in a keyerror

Loading networks from "/content/PanoHead/models/easy-khair-180-gpc0.8-trans10-025000.pkl"... Traceback (most recent call last): File "/content/PanoHead/projector_withseg.py", line 439, in <module> run_projection() # pylint: disable=no-value-for-parameter File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1130, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/content/PanoHead/projector_withseg.py", line 325, in run_projection c = torch.from_numpy(dataset._get_raw_labels()[idx:idx+1]).to(device) File "/content/PanoHead/training/dataset.py", line 59, in _get_raw_labels self._raw_labels = self._load_raw_labels() if self._use_labels else None File "/content/PanoHead/training/dataset.py", line 244, in _load_raw_labels labels = [labels[fname.replace('\\', '/')] for fname in self._image_fnames] File "/content/PanoHead/training/dataset.py", line 244, in <listcomp> labels = [labels[fname.replace('\\', '/')] for fname in self._image_fnames] KeyError: '[YOURFILENAME].jpg'

Generating Shapes on Free Colab

I couldn't generate .ply in colab, even with the provided settings for free colab limit.
I removed the save_video part in projector_withseg.py, ran again, and it did generate .ply.
Why is that?

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.