Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions janus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


# check if python version is above 3.10
__version__ = "1.0.0"

# Patch collections module for Python 3.10+ compatibility
# This is needed for some dependencies that use deprecated collections imports
import sys

if sys.version_info >= (3, 10):
print("Python version is above 3.10, patching the collections module.")
# Monkey patch collections
import collections
import collections.abc

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ urls = {homepage = "https://github.com/deepseek-ai/Janus"}
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"torch>=2.0.1",
"torch>=2.1.0",
"transformers>=4.38.2",
"timm>=0.9.16",
"accelerate",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
torch==2.0.1
torch>=2.1.0
transformers>=4.38.2
timm>=0.9.16
accelerate
Expand Down