ashawkey / stable-dreamfusion

Text-to-3D & Image-to-3D & Mesh Exportation with NeRF + Diffusion.
Apache License 2.0
8.04k stars 713 forks source link

AttributeError: 'Namespace' object has no attribute 'dmtet' #222

Open AreChen opened 1 year ago

AreChen commented 1 year ago

Description

[INFO] loading options.. Namespace(text=None, negative='', test=False, eval_interval=10, workspace='trial_gradio', guidance='stable-diffusion', seed=0, save_mesh=False, mcubes_resolution=256, decimate_target=100000.0, iters=10000, lr=0.001, ckpt='latest', cuda_ray=True, max_steps=1024, num_steps=64, upsample_steps=64, update_extra_interval=16, max_ray_batch=4096, warmup_iters=1000, uniform_sphere_rate=0.5, bg_radius=1.4, density_activation='softplus', density_thresh=10, blob_density=10, blob_radius=0.3, fp16=True, vram_O=True, backbone='grid', optim='adan', sd_version='2.1', hf_key=None, w=64, h=64, jitter_pose=False, bound=1, dt_gamma=0, min_near=0.1, radius_range=[1.0, 1.5], fovy_range=[40, 70], angle_overhead=30, angle_front=60, lambda_entropy=0.0001, lambda_opacity=0, lambda_orient=0.01, lambda_smooth=0, gui=False, W=800, H=800, radius=3, fovy=60, light_theta=60, light_phi=0, max_spp=1, need_share=False)
[INFO] loading models.. [INFO] loading stable diffusion... C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\transformers\models\clip\feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
warnings.warn( [INFO] loaded stable diffusion! [INFO] everything loaded! Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch(). Traceback (most recent call last): File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\gradio\routes.py", line 401, in run_predict output = await app.get_blocks().process_api( File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\gradio\blocks.py", line 1302, in process_api result = await self.call_function( File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\gradio\blocks.py", line 1039, in call_function prediction = await anyio.to_thread.run_sync( File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\ProgramData\anaconda3\envs\stabledream\lib\site-packages\gradio\utils.py", line 491, in async_iteration return next(iterator) File "H:\git\stable-dreamfusion\gradio_app.py", line 161, in submit model = NeRFNetwork(opt) File "H:\git\stable-dreamfusion\nerf\network_grid.py", line 44, in init super().init(opt) File "H:\git\stable-dreamfusion\nerf\renderer.py", line 266, in init self.dmtet = opt.dmtet AttributeError: 'Namespace' object has no attribute 'dmtet'

Steps to Reproduce

1.run "python gradio_app.py --vram_O"

Expected Behavior

"python main.py --text "a hamburger" --workspace trial -O --vram_O“ work fine and output 2 video(depth&rgb.mp4)

Environment

winsows11 torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1

sekkit commented 1 year ago

+1, I had the same problem, plz help. System is Windows 10