-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev (#37) - CLI improvements + docs, simpler install
- Loading branch information
Showing
15 changed files
with
264 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[submodule "vendor/GMA"] | ||
path = vendor/GMA | ||
url = https://github.com/pytti-tools/GMA | ||
[submodule "vendor/AdaBins"] | ||
path = vendor/AdaBins | ||
url = https://github.com/pytti-tools/AdaBins | ||
[submodule "vendor/CLIP"] | ||
path = vendor/CLIP | ||
url = https://github.com/openai/CLIP | ||
[submodule "pytti_taming"] | ||
path = vendor/taming-transformers | ||
url = https://github.com/pytti-tools/taming-transformers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from setuptools import setup, find_packages, find_namespace_packages | ||
import logging | ||
|
||
p0 = find_packages(where='src') | ||
#print(p0) | ||
#logging.critical(p0) | ||
#p1 = find_namespace_packages(where='vendor.*') | ||
#print(p1) | ||
#logging.critical(p1) | ||
p2 = find_namespace_packages( | ||
where='src', | ||
include=['hydra_plugins.*'], | ||
) | ||
#logging.critical(p2) | ||
|
||
setup( | ||
#packages= p0 + p1, | ||
packages=p0+p2, | ||
package_dir={ | ||
"": "src", | ||
#"pyttitools-adabins": "vendor", | ||
#"pyttitools-gma": "vendor", | ||
}, | ||
install_requires=['pyttitools-adabins', 'pyttitools-gma'] | ||
) |
Empty file.
22 changes: 22 additions & 0 deletions
22
src/hydra_plugins/pytti_local_config_searchpath_plugin/searchpath_append_cwd.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
|
||
from loguru import logger | ||
|
||
from hydra.core.config_search_path import ConfigSearchPath | ||
from hydra.plugins.search_path_plugin import SearchPathPlugin | ||
|
||
|
||
# https://hydra.cc/docs/advanced/search_path/# | ||
# https://github.com/facebookresearch/hydra/issues/763 | ||
|
||
class PyttiLocalConfigSearchPathPlugin(SearchPathPlugin): | ||
|
||
def manipulate_search_path(self, search_path: ConfigSearchPath) -> None: | ||
|
||
local_path = f"{os.getcwd()}/config/" | ||
# If path doesn't exist, we should create it and copy configs to it | ||
logger.debug(local_path) | ||
|
||
search_path.append( | ||
provider="pytti_hydra_pathplugin", path=f"file://{local_path}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Vendored code goes here. |
Submodule taming-transformers
added at
cc6d07