Tensor Diffusion

community

AI & ML interests

StableDIffusion, Computer Vision, NLP

tensor-diffusion's activity

not-lainย 
posted an update about 19 hours ago
view post
Post
224
we now have more than 2000 public AI models using ModelHubMixin๐Ÿค—
not-lainย 
posted an update 6 days ago
DamarJatiย 
posted an update 18 days ago
view post
Post
2340
Happy New Year 2025 ๐Ÿค—
For the Huggingface community.
1aurentย 
posted an update 18 days ago
eienmojikiย 
posted an update about 1 month ago
view post
Post
1474
๐Ÿ‘€ Introducing 2048 Game API: A RESTful API for the Classic Puzzle Game ๐Ÿงฉ

I'm excited to share my latest project, 2048 Game API, a RESTful API that allows you to create, manage, and play games of 2048, a popular puzzle game where players slide numbered tiles to combine them and reach the goal of getting a tile with the value of 2048.

โญ Features
Create new games with customizable board sizes (3-8)
Make moves (up, down, left, right) and get the updated game state
Get the current game state, including the board, score, and game over status
Delete games
Generate images of the game board with customizable themes (light and dark)

๐Ÿ”— API Endpoints
POST /api/games - Create a new game
GET /api/games/:gameId - Get the current game state
POST /api/games/:gameId/move - Make a move (up, down, left, right)
DELETE /api/games/:gameId - Delete a game
GET /api/games/:gameId/image - Generate an image of the game board

๐Ÿงฉ Example Use Cases
- Create a new game with a 4x4 board:
curl -X POST -H "Content-Type: application/json" -d '{"size": 4}' http://localhost:3000/api/games

- Make a move up:
curl -X POST -H "Content-Type: application/json" -d '{"direction": "up"}' http://localhost:3000/api/games/:gameId/move

- Get the current game state:
curl -X GET http://localhost:3000/api/games/:gameId

๐Ÿ’• Try it out!
- Demo: eienmojiki/2048
- Source: https://github.com/kogakisaki/koga-2048
- You can try out the API by running the server locally or using a tool like Postman to send requests to the API. I hope you enjoy playing 2048 with this API!

Let me know if you have any questions or feedback!

๐Ÿง Mouse1 is our friend๐Ÿง
not-lainย 
posted an update 2 months ago
view post
Post
2271
ever wondered how you can make an API call to a visual-question-answering model without sending an image url ๐Ÿ‘€

you can do that by converting your local image to base64 and sending it to the API.

recently I made some changes to my library "loadimg" that allows you to make converting images to base64 a breeze.
๐Ÿ”— https://github.com/not-lain/loadimg

API request example ๐Ÿ› ๏ธ:
from loadimg import load_img
from huggingface_hub import InferenceClient

# or load a local image
my_b64_img = load_img(imgPath_url_pillow_or_numpy ,output_type="base64" ) 

client = InferenceClient(api_key="hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")

messages = [
	{
		"role": "user",
		"content": [
			{
				"type": "text",
				"text": "Describe this image in one sentence."
			},
			{
				"type": "image_url",
				"image_url": {
					"url": my_b64_img # base64 allows using images without uploading them to the web
				}
			}
		]
	}
]

stream = client.chat.completions.create(
    model="meta-llama/Llama-3.2-11B-Vision-Instruct", 
	messages=messages, 
	max_tokens=500,
	stream=True
)

for chunk in stream:
    print(chunk.choices[0].delta.content, end="")
1aurentย 
posted an update 4 months ago
view post
Post
1309
Hey everyone ๐Ÿค—!
We (finegrain) have created some custom ComfyUI nodes to use our refiners micro-framework inside comfy! ๐ŸŽ‰

We only support our new Box Segmenter at the moment, but we're thinking of adding more nodes since there seems to be a demand for it. We leverage the new (beta) Comfy Registry to host our nodes. They are available at: https://registry.comfy.org/publishers/finegrain/nodes/comfyui-refiners. You can install them by running:
comfy node registry-install comfyui-refiners

Or by unzipping the archive you can download by clicking "Download Latest" into your custom_nodes comfy folder.
We are eager to hear your feedbacks and suggestions for new nodes and how you'll use them! ๐Ÿ™
1aurentย 
posted an update 5 months ago
view post
Post
4423
Hey everyone ๐Ÿค—!
Check out this awesome new model for object segmentation!
finegrain/finegrain-object-cutter.

We (finegrain) have trained this new model in partnership with Nfinite and some of their synthetic data, the resulting model is incredibly accurate ๐Ÿš€.
Itโ€™s all open source under the MIT license ( finegrain/finegrain-box-segmenter), complete with a test set tailored for e-commerce ( finegrain/finegrain-product-masks-lite). Have fun experimenting with it!
DamarJatiย 
posted an update 5 months ago
view post
Post
3755
Improved ControlNet!
Now supports dynamic resolution for perfect landscape and portrait outputs. Generate stunning images without distortionโ€”optimized for any aspect ratio!
...
DamarJati/FLUX.1-DEV-Canny
not-lainย 
posted an update 5 months ago
1aurentย 
posted an update 6 months ago
view post
Post
2574
Hey everyone ๐Ÿค—!
Check out this cool new space from Finegrain: finegrain/finegrain-object-eraser

Under the hoods, it's a pipeline of models (currently exposed via an API) that allows you to easily erase any object from your image just by naming it or selecting it! Not only will the object disappear, but so will its effects on the scene, like shadows and reflections. Built on top of Refiners, our micro-framework for simple foundation model adaptation (feel free to star it on GitHub if you like it: https://github.com/finegrain-ai/refiners)
  • 2 replies
ยท
1aurentย 
posted an update 6 months ago
not-lainย 
posted an update 6 months ago
view post
Post
7719
I am now a huggingface fellow ๐Ÿฅณ
ยท
1aurentย 
posted an update 6 months ago
not-lainย 
posted an update 7 months ago
view post
Post
2678
I have finished writing a blogpost about building an image-based retrieval system, This is one of the first-ever approaches to building such a pipeline using only open-source models/libraries ๐Ÿค—

You can checkout the blogpost in https://huggingface.co/blog/not-lain/image-retriever and the associated space at not-lain/image-retriever .

โœจ If you want to request another blog post consider letting me know down below or you can reach out to me through any of my social media

๐Ÿ“– Happy reading !
not-lainย 
posted an update 7 months ago