PTI icon indicating copy to clipboard operation
PTI copied to clipboard

This needs updating with readme

Open johndpope opened this issue 2 years ago • 2 comments

https://github.com/danielroich/PTI/blob/7da3f22f8077c6930afa13186e3f80dcf734779b/models/StyleCLIP/optimization/run_optimization.py#L29

johndpope avatar Sep 12 '21 16:09 johndpope

Thanks! :) Will be updated

danielroich avatar Sep 15 '21 09:09 danielroich

I maybe doing something wrong and or tied / but when I point the python optimization/run_optimization.py code at a presaved PTI pytorch latent it seems to be getting the e4e ??? That would only make sense if the embeddings were saving to wrong directory....??

e4e python optimization/run_optimization.py --latent_path=/home/jp/Documents/gitWorkspace/e4e/embeddings/images/e4e/1/0.pt --description "drug fiend" 00020

PTI python optimization/run_optimization.py --latent_path=/home/jp/Documents/gitWorkspace/PTI/embeddings/images/PTI/1/0.pt --description "drug fiend"

00000

SG2_plus python optimization/run_optimization.py --latent_path=/home/jp/Documents/gitWorkspace/PTI/embeddings/images/SG2_plus/1/0.pt --description "drug fiend"

00000

johndpope avatar Sep 19 '21 13:09 johndpope

@johndpope Hi, I need your help! When I do "python run_optimization.py" in the directory "./optimization",I get "error: cann't import name 'ensure_checkpoint_exists' from 'StyleCLIP.global_directions.utils' (./utils/init.py)", then I search for 'ensure_checkpoint_exists' in the entire project, then all about it are located in './run_optimization.py'. And there is nothing in ./models/StyleCLIP/global_dirctions/utils/init.py

So, I just wonder if there are something lost in the github.

Andy010902 avatar Jan 05 '24 12:01 Andy010902

sorry Andy, when nvidia-labs abandoned tensorflow in favour of pytorch - I no longer work with tensorflow.

Doing a search for that specific function name on github - returns many results. - https://github.com/search?q=ensure_checkpoint_exists+styleclip&type=code

I would abandon this repo for one in favour of torch / see results above. you can see in requirements

johndpope avatar Jan 05 '24 20:01 johndpope