Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Translate JS to TS#1197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
sroussey wants to merge13 commits intohuggingface:main
base:main
Choose a base branch
Loading
fromsroussey:tyypescript

Conversation

sroussey
Copy link
Contributor

No description provided.

lin72h reacted with hooray emoji
- `configs.ts`: Adds configuration handling for model loading and normalization- `env.ts`: Provides global environment configuration for the library- `utils/constants.ts`: Defines constant values used across the library- `utils/core.ts`: Implements core utility functions and types- `utils/data-structures.ts`: Introduces custom data structures like PriorityQueue- `utils/devices.ts`: Defines supported device types- `utils/hub.ts`: Adds utility functions for interacting with the Hugging Face Hub- `utils/maths.ts`: Provides mathematical processing utilities- `utils/tensor.ts`: Implements tensor manipulation and creation functions
- Introduces `dtypes.ts` with data type constants and mappings
- audio.ts- generic.ts
- ops/registry.ts
- generation/stopping_criteria.ts
@kungfooman
Copy link
Contributor

image

Did it ever cross your mind that you just make beautiful JS unreadable with no gains and forcing everyone to install endless amounts of node_modules for... a PITA? Please learn modern JS, ESM and importmaps.

@BritishWerewolf
Copy link
Contributor

This has been discussed in#1145 where the consensus was the same: TypeScript doesn't provide any additional benefits than what the library already does.
Types exist already.

- Implement `Processor` base class in `processing_utils.ts` for feature extraction- Add TypeScript type annotations to `streamers.ts`- Create `BeitFeatureExtractor` in `image_processing_beit.ts`
- Update `env.ts` to use `ICache` interface- Simplify import statements in `hub.ts` to use node: prefix- Improve type annotations in `onnx.ts` and `feature_extraction_utils.ts`- Add type definitions for cache and model JSON objects
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@sroussey@kungfooman@BritishWerewolf

[8]ページ先頭

©2009-2025 Movatter.jp