stable-diffusion-webui-wd14-tagger icon indicating copy to clipboard operation
stable-diffusion-webui-wd14-tagger copied to clipboard

where the heck do you install models??? where to put them???? NO DOC or whatsoever.......

Open bryanray opened this issue 1 year ago • 7 comments

where the heck do you install models??? where to put them???? NO DOC or whatsoever.......

bryanray avatar Mar 16 '23 13:03 bryanray

where the heck do you install models??? where to put them???? NO DOC or whatsoever.......

Choose one of them. image

Then run it, it should be automatically downloading the required models.

SlavyanDesu avatar Mar 20 '23 03:03 SlavyanDesu

where the heck do you install models??? where to put them???? NO DOC or whatsoever.......

Choose one of them. image

Then run it, it should be automatically downloading the required models.

I want to download it manually as the network maybe unable to access. Therefore what directory should I put the models? For example I download the models from https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger/, where should I put wd-v1-4-vit-tagger?

MrRace avatar Mar 22 '23 12:03 MrRace

I found that downloaded models is saved here. C:\Users\YOUR_NAME\.cache\huggingface\hub

SlavyanDesu avatar Mar 22 '23 13:03 SlavyanDesu

i know where they save but not in a proper folder, they all save in unknown un specified folder that you have to look for...... why not like models and lora extention you got guidlines.

bryanray avatar Mar 24 '23 07:03 bryanray

please some one make it properly work, we all want to download models separately and know where to put in the folder, NOT IN THE godamn TEMP......... geeez :)))

where the heck do you install models??? where to put them???? NO DOC or whatsoever.......

Choose one of them. image Then run it, it should be automatically downloading the required models.

I want to download it manually as the network maybe unable to access. Therefore what directory should I put the models? For example I download the models from https://huggingface.co/SmilingWolf/wd-v1-4-vit-tagger/, where should I put wd-v1-4-vit-tagger?

bryanray avatar Mar 24 '23 14:03 bryanray

I edited 'stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/tagger/interrogator.py'

	def download(self) -> Tuple[os.PathLike, os.PathLike]:
	        print(f"Loading {self.name} model file from {self.kwargs['repo_id']}")


	        # model_path = Path(hf_hub_download(
	        #     **self.kwargs, filename=self.model_path))
	        # tags_path = Path(hf_hub_download(
	        #     **self.kwargs, filename=self.tags_path))

	        # use local path instead
	        base_path = f"stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/models/{self.kwargs['repo_id']}"
	        model_path = f'{base_path}/{self.model_path}'
	        tags_path = f'{base_path}/{self.tags_path}'
	        
                return model_path, tags_path

problem solved

PengZiqiao avatar Jun 15 '23 02:06 PengZiqiao

I edited 'stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/tagger/interrogator.py'

	def download(self) -> Tuple[os.PathLike, os.PathLike]:
	        print(f"Loading {self.name} model file from {self.kwargs['repo_id']}")


	        # model_path = Path(hf_hub_download(
	        #     **self.kwargs, filename=self.model_path))
	        # tags_path = Path(hf_hub_download(
	        #     **self.kwargs, filename=self.tags_path))

	        # use local path instead
	        base_path = f"stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/models/{self.kwargs['repo_id']}"
	        model_path = f'{base_path}/{self.model_path}'
	        tags_path = f'{base_path}/{self.tags_path}'
	        
                return model_path, tags_path

problem solved

you GENIUS

bryanray avatar Jun 15 '23 05:06 bryanray