matgen / text2tex /run.sh
jingyangcarl's picture
pushback
b5042f1
raw
history blame contribute delete
963 Bytes
# nv_size won't affect the speed too much, just several seconds
# image_size goes lower than 512 will cause the texture really bad
export CUDA_VISIBLE_DEVICES=6
python /home/jyang/projects/ObjectReal/external/matgen/text2tex/scripts/generate_texture.py \
--input_dir /home/jyang/projects/ObjectReal/external/matgen/examples/bunny/ \
--output_dir /home/jyang/projects/ObjectReal/external/matgen/output/bunny/metal \
--obj_name mesh \
--obj_file mesh.obj \
--prompt "metal bunny" \
--add_view_to_prompt \
--ddim_steps 5 \
--new_strength 1 \
--update_strength 0.3 \
--view_threshold 0.1 \
--blend 0 \
--dist 1 \
--num_viewpoints 2 \
--viewpoint_mode predefined \
--use_principle \
--update_steps 2 \
--update_mode heuristic \
--seed 42 \
--post_process \
--device "2080" \
--uv_size 1000 \
--image_size 512 \
--use_objaverse # assume the mesh is normalized with y-axis as up