-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor project structure and enhance functionality
- Updated .gitignore to simplify ignored paths. - Updated LTX submodule to the latest commit for improved features. - Added 'imageio' to requirements.txt for enhanced image processing capabilities. - Introduced a new client.py file for making predictions via the API. - Enhanced logging in ltx_api.log to capture server start attempts and errors. - Improved LTXVideoSettings in ltx_settings.py by adding model_revision for stable model downloads. These changes aim to streamline the project setup, improve API functionality, and enhance logging for better troubleshooting.
- Loading branch information
Showing
11 changed files
with
39 additions
and
5 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 |
---|---|---|
@@ -1 +1 @@ | ||
api/checkpoints | ||
checkpoints |
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,18 @@ | ||
|
||
# Copyright The Lightning AI team. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
import requests | ||
|
||
response = requests.post("http://127.0.0.1:8000/predict", json={"input": 4.0}) | ||
print(f"Status: {response.status_code}\nResponse:\n {response.text}") |
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
Binary file not shown.
Binary file not shown.
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
Submodule ltx
updated
5 files
+1 −0 | .gitignore | |
+2 −2 | README.md | |
+41 −28 | inference.py | |
+31 −0 | ltx_video/pipelines/pipeline_ltx_video.py | |
+0 −1 | pyproject.toml |
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ boto3 | |
prometheus-client | ||
loguru | ||
bitsandbytes | ||
imageio |
Binary file not shown.
Binary file not shown.
Binary file not shown.