Downloads · 30 days
0
burny1112/my-cool-model
my-cool-model is a machine learning model from burny1112. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Updated based on the actual repository code. Key facts from the source:
Downloads · 30 days
0
Access
Public
Updated May 31, 2026
Repo size
13.8 GB
Likes
0
Public
Click a slice to open those files.
.incomplete13.5 GB · 97%
From the Hugging Face model README
Updated based on the actual repository code. Key facts from the source:
--height/--width
to change it; the model is most tested at 704x1280.(N - 1) % 120 == 0 (i.e. 121, 241, 361,
481, ...). The README's "121*N - 1" wording is wrong; the code is right.cosmos-predict1 by the YAML file.| File | Purpose |
|---|---|
setup_gen3c.sh | One-shot install (Linux/WSL2 only) following INSTALL.md exactly |
blender_export_camera.py | Run in Blender to export the camera trajectory as JSON, including OpenCV-convention w2c matrices |
gen3c_custom_trajectory.py | Monkey-patch module; loads Blender JSON and feeds it into GEN3C |
run_gen3c.py | CLI wrapper, supports both preset and custom-JSON trajectories |
export HF_TOKEN=hf_your_token_here
chmod +x setup_gen3c.sh
./setup_gen3c.sh
This follows the official INSTALL.md exactly:
cosmos-predict1 conda env from the bundled YAML (Python 3.10, CUDA 12.4, gcc 12.4)conda activate cosmos-predict1
cd ~/Projects/GEN3C
export CUDA_HOME=$CONDA_PREFIX
export PYTHONPATH=$(pwd)
python cosmos_predict1/diffusion/inference/gen3c_single_image.py \
--checkpoint_dir checkpoints \
--input_image_path assets/diffusion/000000.png \
--video_save_name test_install \
--guidance 1 \
--foreground_masking
Verify the output video looks reasonable before doing anything custom.
python /path/to/run_gen3c.py \
--gen3c_dir $(pwd) \
--image /path/to/Surius.png \
--output_name surius_zoom_out \
--preset_trajectory zoom_out \
--movement_distance 0.5 \
--num_video_frames 121
This confirms GEN3C handles your specific image. If it works, move on.
In Blender (Scripting workspace):
blender_export_camera.py, run itcamera_trajectory.json lands next to your .blend fileThe JSON contains OpenCV-convention world-to-camera 4x4 matrices, which match GEN3C's internal format.
python /path/to/run_gen3c.py \
--gen3c_dir $(pwd) \
--image /path/to/Surius.png \
--output_name surius_blender_cam \
--trajectory_json /path/to/camera_trajectory.json \
--num_video_frames 121
The wrapper:
120*N + 1 patterngen3c_custom_trajectory.pygen3c_single_image.py with --trajectory none, which the patch
intercepts to inject the Blender-derived w2c matricesGEN3C's pipeline:
gen3c_single_image.py calls MoGe to predict depth from the input imagegenerate_camera_trajectory() to get a sequence of w2c matricesgen3c_custom_trajectory.py replaces step 3 with:
No GEN3C source files are modified, so upstream pulls still work.
GEN3C generates at 704 x 1280 by default. For 1920 x 1080 delivery:
--height 1080 --width 1920 and hope the model behaves
at non-tested resolutions. May produce artifacts.The upscaling pass is also where you'd add the "high-frequency detail" that AI video models naturally lack.
GEN3C's README says max observed inference memory is ~43 GB with full offloading. For a Blackwell RTX PRO 6000:
--offload_all needed--offload_all, will be slowIf you hit OOM, add --offload_all to the run_gen3c.py command.
cosmos_predict1/diffusion/inference/camera_utils.py and the
call site in gen3c_single_image.py. First run might surface issues
with coordinate conventions, intrinsics scale, or depth-to-trajectory
alignment that need tuning.blender_export_camera.py
may need adjustment.sudo apt install build-essential.MAX_JOBS=4 before the pip install.blender_export_camera.py may need adjustment. Try removing the
_rebase_to_first_frame call in the patch module to see raw
trajectory behavior.