clean up...
Browse filesFiles changed (6)
21 unmodified lines22232425262721 unmodified linesMVDream:```bash# download original ckpt (we only support the SD 2.1 version)cd modelswget https://huggingface.co/MVDream/MVDream/resolve/main/sd-v2.1-base-4view.ptwget https://raw.githubusercontent.com/bytedance/MVDream/main/mvdream/configs/sd-v2-base.yaml21 unmodified lines2223242526272821 unmodified linesMVDream:```bash# download original ckpt (we only support the SD 2.1 version)mkdir modelscd modelswget https://huggingface.co/MVDream/MVDream/resolve/main/sd-v2.1-base-4view.ptwget https://raw.githubusercontent.com/bytedance/MVDream/main/mvdream/configs/sd-v2-base.yaml
2 unmodified lines3456789105 unmodified lines16171819202122232 unmodified linesimport torch.nn.functional as Ffrom diffusers.configuration_utils import ConfigMixinfrom diffusers.models.modeling_utils import ModelMixinfrom typing import Any, List, Optionalfrom torch import Tensorfrom .util import (checkpoint,5 unmodified linesfrom .attention import SpatialTransformer3Dfrom .adaptor import Resamplerimport kiuiclass CondSequential(nn.Sequential):"""A sequential module that passes timestep embeddings to the children that2 unmodified lines34567895 unmodified lines1516171819202 unmodified linesimport torch.nn.functional as Ffrom diffusers.configuration_utils import ConfigMixinfrom diffusers.models.modeling_utils import ModelMixinfrom typing import Any, Listfrom .util import (checkpoint,5 unmodified linesfrom .attention import SpatialTransformer3Dfrom .adaptor import Resamplerclass CondSequential(nn.Sequential):"""A sequential module that passes timestep embeddings to the children that
17 unmodified lines181920212223242517 unmodified linesfrom .models import MultiViewUNetModelfrom .util import get_cameraimport kiuilogger = logging.get_logger(__name__) # pylint: disable=invalid-name17 unmodified lines18192021222317 unmodified linesfrom .models import MultiViewUNetModelfrom .util import get_cameralogger = logging.get_logger(__name__) # pylint: disable=invalid-name
3 unmodified lines4563 unmodified lineshuggingface_hub == 0.19.4transformers == 4.35.2accelerate == 0.25.0.dev03 unmodified lines45673 unmodified lineshuggingface_hub == 0.19.4transformers == 4.35.2accelerate == 0.25.0.dev0kiui == 0.2.0
2 unmodified lines34562 unmodified linessafetensorshuggingface_hubtransformersaccelerate2 unmodified lines345672 unmodified linessafetensorshuggingface_hubtransformersacceleratekiui
5 unmodified lines678910111213145 unmodified linespipe = MVDreamPipeline.from_pretrained("./weights_mvdream", # local weights# "ashawkey/mvdream-sd2.1-diffusers",torch_dtype=torch.float16)pipe = pipe.to("cuda")5 unmodified lines6789101112131415165 unmodified linespipe = MVDreamPipeline.from_pretrained("./weights_mvdream", # local weights# 'ashawkey/mvdream-sd2.1-diffusers', # remote is nottorch_dtype=torch.float16,trust_remote_code=True,)pipe = pipe.to("cuda")
README.md+1
mvdream/models.py+1-4
mvdream/pipeline_mvdream.py-2
requirements.lock.txt+1
requirements.txt+2-1
run_mvdream.py+4-2