stable-dreamfusion icon indicating copy to clipboard operation
stable-dreamfusion copied to clipboard

Problems for test

Open gadespc opened this issue 3 years ago • 1 comments

Have a problems for test the colab, I think the problem is for the models... can help me? , Tnks🙏 :

Namespace(H=800, O=True, O2=False, W=800, albedo_iters=1000, angle_front=60, angle_overhead=30, backbone='grid', bg_radius=1.4, bound=1, ckpt='scratch', cuda_ray=True, density_thresh=10, dir_text=True, dt_gamma=0, eval_interval=10, fovy=60, fovy_range=[40, 70], fp16=True, gui=False, guidance='stable-diffusion', h=64, iters=5000, jitter_pose=False, lambda_entropy=0.0001, lambda_opacity=0, lambda_orient=0.01, lambda_smooth=0, light_phi=0, light_theta=60, lr=0.001, max_ray_batch=4096, max_spp=1, max_steps=1024, min_near=0.1, negative='', negative_dir_text=True, num_steps=64, radius=3, radius_range=[1.0, 1.5], save_mesh=True, seed=0, test=False, text='plant ', update_extra_interval=16, upsample_steps=64, w=64, workspace='trial') NeRFNetwork( (encoder): GridEncoder: input_dim=3 num_levels=16 level_dim=2 resolution=16 -> 2048 per_level_scale=1.3819 params=(903480, 2) gridtype=tiled align_corners=False (sigma_net): MLP( (net): ModuleList( (0): Linear(in_features=32, out_features=64, bias=True) (1): Linear(in_features=64, out_features=64, bias=True) (2): Linear(in_features=64, out_features=4, bias=True) ) ) (encoder_bg): FreqEncoder: input_dim=3 degree=6 output_dim=39 (bg_net): MLP( (net): ModuleList( (0): Linear(in_features=39, out_features=64, bias=True) (1): Linear(in_features=64, out_features=3, bias=True) ) ) ) [INFO] try to load hugging face access token from the default place, make sure you have run huggingface-cli login. [INFO] loading stable diffusion...

HTTPError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/huggingface_hub/utils/_errors.py in hf_raise_for_status(response, endpoint_name) 212 try: --> 213 response.raise_for_status() 214 except HTTPError as e:

7 frames HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/vae/diffusion_pytorch_model.bin

The above exception was the direct cause of the following exception:

HfHubHTTPError Traceback (most recent call last) HfHubHTTPError: <class 'requests.exceptions.HTTPError'> (Request ID: ir0-cnJcGTioLkO4XBr0C)

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/diffusers/modeling_utils.py in from_pretrained(cls, pretrained_model_name_or_path, **kwargs) 358 except HTTPError as err: 359 raise EnvironmentError( --> 360 "There was a specific connection error when trying to load" 361 f" {pretrained_model_name_or_path}:\n{err}" 362 )

OSError: There was a specific connection error when trying to load runwayml/stable-diffusion-v1-5: <class 'requests.exceptions.HTTPError'> (Request ID: ir0-cnJcGTioLkO4XBr0C)

gadespc avatar Oct 25 '22 20:10 gadespc

The problem is your huggingface token.

In sd.py image

The code is looking for the token to be stored locally in ./TOKEN, but huggingface cli stores the token in ~/.huggingface/token

This needs to be moved to stable-dreamfusion directory or change the code to look for location of your huggingface token

mfogelson avatar Oct 26 '22 22:10 mfogelson