how install this in colab: # DimensionX: Create Any 3D and 4D Scenes from a Single Image…
- User
how install this in colab: # DimensionX: Create Any 3D and 4D Scenes from a Single Image with Controllable Video Diffusion
Paper | Project Page | Video | 🤗 HF Demo
Official implementation of DimensionX: Create Any 3D and 4D Scenes from a Single Image with Controllable Video Diffusion
Wenqiang Sun*, Shuo Chen*, Fangfu Liu*, Zilong Chen, Yueqi Duan, Jun Zhang, Yikai Wang
Abstract: In this paper, we introduce DimensionX, a framework designed to generate photorealistic 3D and 4D scenes from just a single image with video diffusion. Our approach begins with the insight that both the spatial structure of a 3D scene and the temporal evolution of a 4D scene can be effectively represented through sequences of video frames. While recent video diffusion models have shown remarkable success in producing vivid visuals, they face limitations in directly recovering 3D/4D scenes due to limited spatial and temporal controllability during generation. To overcome this, we propose ST-Director, which decouples spatial and temporal factors in video diffusion by learning dimension-aware LoRAs from dimension-variant data. This controllable video diffusion approach enables precise manipulation of spatial structure and temporal dynamics, allowing us to reconstruct both 3D and 4D representations from sequential frames with the combination of spatial and temporal dimensions. Additionally, to bridge the gap between generated videos and real-world scenes, we introduce a trajectory-aware mechanism for 3D generation and an identity-preserving denoising strategy for 4D generation. Extensive experiments on various real-world and synthetic datasets demonstrate that DimensionX achieves superior results in controllable video generation, as well as in 3D and 4D scene generation, compared with previous methods.
- Assistant
- User
how download this model to colab: https://huggingface.co/wenqsun/DimensionX/blob/main/orbit_left_lora_weights.safetensors
- Assistant
To download the model
orbit_left_lora_weights.safetensorsfrom Hugging Face to your Google Colab environment, you can utilize thewgetcommand or Python'srequestslibrary. Below are the steps using both methods:Method 1: Using
wgetYou can use the
wgetcommand to download files directly from a URL. Here's how to do it:- Open a new cell in your Google Colab notebook.
- Use the following code:
!wget https://huggingface.co/wenqsun/DimensionX/resolve/main/orbit_left_lora_weights.safetensorsMethod 2: Using Python's
requestsAlternatively, you can use the
requestslibrary to download the file. Here's how: